/* WAP only. Keep the existing member controls, account state and payment flows. */
.my, .wallet, .vip, .share, .find, .buy {
    color: var(--md-mobile-text, #e7e7e7);
    background: var(--md-mobile-bg, #111113);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
}
.my { height: auto; min-height: calc(100vh - 62px); padding: 0 10px 18px; box-sizing: border-box; }
.my .panel { background: transparent; }
.my .panel .box { padding: 28px 4px 20px; gap: 12px; }
.my .panel .box .avatar { width: 60px; height: 60px; flex: 0 0 60px; border: 2px solid rgba(255,255,255,.12); box-sizing: border-box; }
.my .panel .box .info { flex: 1; min-width: 0; margin: 0; padding-right: 30px; }
.my .panel .box .info .info_top { font-size: 18px; line-height: 26px; }
.my .panel .box .info .info_top .info_name { color: var(--md-mobile-text, #e7e7e7); font-weight: 600; }
.my .panel .box .info .info_bottom { margin-top: 5px; font-size: 12px; line-height: 19px; color: var(--md-mobile-muted, #93969f); }
.my .panel .box .info .info_bottom a { color: var(--md-mobile-accent, #ffd09b); }
.my .panel .setting { top: 15px; right: 0; width: 40px; height: 40px; background-size: 23px; }
.my .nav { padding: 0; }
.my .nav .nav_wallet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; }
.my .nav .nav_wallet > a {
    box-sizing: border-box; width: auto; min-width: 0; height: auto; min-height: 88px;
    padding: 16px 12px; margin: 0; border-radius: var(--md-mobile-radius, 12px);
    border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08));
    background: linear-gradient(115deg, #ffe2bd, #eeb77e) !important;
}
.my .nav .nav_wallet > a:nth-child(2) { margin: 0; background: var(--md-mobile-surface, #1c1d21) !important; }
.my .nav .nav_wallet a .nav_left { min-width: 0; }
.my .nav .nav_wallet a .nav_left p:first-child { font-family: inherit; font-weight: 600; font-size: 14px; line-height: 21px; color: #3a2b20; }
.my .nav .nav_wallet a .nav_left p:nth-child(2) { margin-top: 6px; font-family: inherit; font-size: 11px; line-height: 17px; color: #70533b; overflow-wrap: anywhere; }
.my .nav .nav_wallet a:nth-child(2) .nav_left p:first-child { color: var(--md-mobile-text, #e7e7e7); }
.my .nav .nav_wallet a:nth-child(2) .nav_left p:nth-child(2) { color: var(--md-mobile-accent, #ffd09b); }
.my .nav .nav_wallet a .nav_right { flex: 0 0 38px; width: 38px; height: 42px; margin-left: 6px; }
.my .nav .nav_agent {
    box-sizing: border-box; min-height: 58px; height: auto; padding: 12px; margin: 10px 0 0;
    border-radius: var(--md-mobile-radius, 12px); border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08));
    background: var(--md-mobile-surface, #1c1d21) !important;
}
.my .nav .nav_agent li:first-child span { margin-left: 8px; font-size: 14px; line-height: 22px; color: var(--md-mobile-text, #e7e7e7); }
.my .nav .nav_agent li:nth-child(2) span { font-size: 11px; line-height: 18px; color: var(--md-mobile-muted, #93969f) !important; }
.my .nav .nav_agent li .left_icon { width: 24px; height: 24px; }
.my .nav .nav_agent li .right_icon { width: 16px; height: 16px; filter: grayscale(1) brightness(1.5); }
.my .grid, .my .mylist {
    padding: 12px 4px; margin: 10px 0 0; border-radius: var(--md-mobile-radius, 12px);
    background: var(--md-mobile-surface, #1c1d21); border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08));
}
.my .van-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 0; padding: 0; }
.my .van-grid > .van-grid-item { width: auto; min-width: 0; padding: 0; color: inherit; cursor: pointer; }
.my .van-grid-item .van-grid-item__content { min-height: 76px; padding: 8px 2px; background: transparent; }
.my .van-grid-item .van-grid-item__content::after, .my .mylist > .van-cell::after { display: none; }
.my .van-grid-item .van-grid-item__icon-wrapper { min-height: 38px; display: flex; align-items: center; justify-content: center; }
.my .van-grid-item .grid_img, .my .grid .grid_img { width: 38px; height: 38px; object-fit: contain; }
.my .van-grid-item .van-grid-item__text { margin-top: 8px; color: var(--md-mobile-text, #e7e7e7); font-size: 11px; line-height: 17px; white-space: nowrap; }
.my .grid .free_icon { width: 27px; height: 14px; top: -6px; right: -9px; }
.my .mylist > .van-cell { padding: 0 10px 8px; min-height: 0; line-height: 22px; background: transparent; }
.my .mylist .list_title { color: var(--md-mobile-text, #e7e7e7); font-size: 14px; font-family: inherit; font-weight: 600; }
.my [aria-disabled="true"] { opacity: .5; cursor: default; }
.my a:focus-visible, .my [role="button"]:focus-visible { outline: 2px solid var(--md-mobile-accent, #ffd09b); outline-offset: 3px; }

/* Existing balance, recharge and membership cards. */
.wallet .bag {
    box-sizing: border-box; height: auto; min-height: 174px; margin: 12px 10px; padding: 20px 16px 14px;
    background: linear-gradient(115deg, #ffe2bd, #eeb77e); border-radius: var(--md-mobile-radius, 12px);
}
.wallet .bag .bag-balance { margin-top: 0; }
.wallet .bag .bag-balance .bag-balance-item { width: 100%; }
.wallet .bag .bag-balance .bag-balance-item p { color: #4d3524; }
.wallet .bag .bag-balance .bag-balance-item p:first-child { font-size: 13px; line-height: 20px; }
.wallet .bag .bag-balance .bag-balance-item p:nth-child(2) { font-size: 11px; line-height: 18px; margin-top: 4px; }
.wallet .bag .bag-balance .bag-balance-item p:nth-child(3) { font-size: 32px; line-height: 44px; font-variant-numeric: tabular-nums; }
.wallet .bag .bag-btn { margin-top: 12px; gap: 8px; }
.wallet .bag .bag-btn a { width: auto; min-width: 70px; height: 32px; line-height: 32px; border-radius: 8px; margin: 0; font-size: 12px; }
.wallet .recharge { margin: 0 10px 20px; padding: 14px 12px; border-radius: var(--md-mobile-radius, 12px); background: var(--md-mobile-surface, #1c1d21); }
.wallet .recharge .recharge-title { margin: 0 0 12px; padding: 0; font-size: 15px; line-height: 24px; color: var(--md-mobile-text, #e7e7e7); }
.wallet .recharge .recharge-title::before { display: none; }
.wallet .recharge .recharge-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; }
.wallet .recharge .recharge-box::after { display: none; }
.wallet .recharge .recharge-box > .van-col { width: auto; min-width: 0; padding: 0 !important; }
.wallet .recharge .recharge-box ul { min-height: 76px; height: auto; margin: 0; padding: 12px 4px; border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08)); border-radius: 10px; background: var(--md-mobile-bg, #111113); }
.wallet .recharge .recharge-box .select-border.active { border: 1px solid var(--md-mobile-accent, #ffd09b); background: rgba(255,208,155,.07); }
.wallet .recharge .recharge-box ul li:first-child { color: var(--md-mobile-text, #e7e7e7); font-size: 21px; line-height: 28px; }
.wallet .recharge .recharge-box ul li:nth-child(2) { color: var(--md-mobile-muted, #93969f); font-size: 11px; line-height: 18px; }
.wallet .recharge .recharge-subtitle { padding: 0; font-size: 13px; line-height: 22px; color: var(--md-mobile-text, #e7e7e7); }
.wallet .recharge .recharge-desc { padding: 4px 0 0; color: var(--md-mobile-muted, #93969f); font-size: 12px; line-height: 1.7; }
.wallet .recharge .btn { width: 100%; height: 44px; margin: 16px 0; border-radius: 10px; font-size: 14px; border-color: var(--md-mobile-accent, #ffd09b); background: var(--md-mobile-accent, #ffd09b); color: #34271e; }
.vip .container { padding: 10px 10px 24px; }
.vip #md-vip-plans .md-vip-options { gap: 10px; padding: 0 0 10px; }
.vip #md-vip-plans .md-vip-cell { flex-basis: 64%; }
.vip #md-vip-plans .md-vip-card { min-height: 132px; border-radius: var(--md-mobile-radius, 12px); border-color: var(--md-mobile-border, rgba(255,255,255,.08)); background: var(--md-mobile-surface, #1c1d21); color: var(--md-mobile-text, #e7e7e7); }
.vip #md-vip-plans .md-vip-card.active { border-color: var(--md-mobile-accent, #ffd09b); color: var(--md-mobile-accent, #ffd09b); background: #30271f; }
.vip #md-vip-plans .md-vip-status { color: var(--md-mobile-muted, #93969f); font-size: 12px; }
.vip .container .privilege { padding: 14px 4px; border-radius: var(--md-mobile-radius, 12px); background: var(--md-mobile-surface, #1c1d21); }
.vip .container .privilege .privilege_title { margin: 0 0 12px; font-size: 14px; color: var(--md-mobile-text, #e7e7e7); }
.vip .privilege .van-grid-item__content { padding: 10px 0; background: transparent; }
.vip .container .privilege .privilege_img { width: 42px; height: 42px; }
.vip .container .privilege .privilege_text { font-size: 12px; color: var(--md-mobile-text, #e7e7e7); }
.vip .md-vip-actions button { border-radius: 10px; background: var(--md-mobile-accent, #ffd09b); color: #34271e; }

/* Personal referral code keeps its white quiet zone for scanning. */
.share .container { box-sizing: border-box; padding: 14px 10px 24px; background: var(--md-mobile-bg, #111113); }
.share .container .invite_title { width: 100%; max-width: 340px; height: 90px; margin: 0 auto; }
.share .container .invite_code { padding: 12px; margin-top: 16px; border-radius: 12px; }
.share .container .invite_code .tips { margin-top: 10px; font-size: 13px; line-height: 20px; color: #68482e; }
.share .container .invite_btn { margin-top: 18px; }
.share .container .invite_btn span:first-child { width: auto; min-width: 180px; height: 44px; line-height: 44px; padding: 0 20px; border-radius: 10px; background: var(--md-mobile-accent, #ffd09b); font-size: 14px; color: #34271e; }
.share .container .invite_rules { margin-top: 16px; padding: 4px 14px 14px; border-radius: var(--md-mobile-radius, 12px); background: var(--md-mobile-surface, #1c1d21); }
.share .container .invite_rules ul { margin-top: 12px; color: var(--md-mobile-muted, #93969f); font-size: 12px; line-height: 1.7; }
.share .container .invite_rules li:first-child { margin-bottom: 3px; color: var(--md-mobile-text, #e7e7e7); font-weight: 600; }
.share .member-invite-feedback { color: var(--md-mobile-accent, #ffd09b); }
.find.profile-page .setting { margin: 12px 10px 0; border: 1px solid var(--md-mobile-border, rgba(255,255,255,.08)); background: var(--md-mobile-surface, #1c1d21); }
.find.profile-page .setting .van-cell { min-height: 56px; background: var(--md-mobile-surface, #1c1d21); color: var(--md-mobile-text, #e7e7e7); }
.find.profile-page .setting .van-cell__value, .find.profile-page .setting .van-cell__right-icon { color: var(--md-mobile-muted, #93969f); }
.find.profile-page .container { padding: 18px 10px 28px; }
.find.profile-page .profile-section-title { font-size: 15px; font-weight: 600; color: var(--md-mobile-text, #e7e7e7); }
.find.profile-page .container .field_box { border-color: var(--md-mobile-border, rgba(255,255,255,.08)); border-radius: 10px; background: var(--md-mobile-surface, #1c1d21); }
.find.profile-page .container .field_box .van-cell, .find.profile-page .container .field_box .van-field__body { background: var(--md-mobile-surface, #1c1d21); }
.find.profile-page .container .field_box:focus-within { border-color: var(--md-mobile-accent, #ffd09b); }
.find.profile-page .container .submit { border-radius: 10px; }
.favslist.van-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; padding: 12px 10px 24px; }
.favslist.van-row::after { display: none; }
.favslist.van-row > .list_item { width: auto; min-width: 0; padding: 0; margin: 0; }
.favslist .list_item .list_box { height: auto; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.favslist .list_item .list_img { height: 100%; width: 100%; }
.favslist .list_item .list_title { height: 40px; margin-top: 7px; padding-top: 0; font-size: 13px; line-height: 20px; color: var(--md-mobile-text, #e7e7e7) !important; }
.favslist .list_item .list_status { margin-top: 4px; color: var(--md-mobile-muted, #93969f) !important; font-size: 11px; }
.favslist .list_item .list_status span { color: inherit; }

/* Same login/register dialog and events, with the mobile palette. */
.member-auth-overlay .member-auth-card { border-radius: 14px; background: var(--md-mobile-surface, #1c1d21); border-color: var(--md-mobile-border, rgba(255,255,255,.08)); color: var(--md-mobile-text, #e7e7e7); }
.member-auth-overlay .member-auth-tabs { background: var(--md-mobile-bg, #111113); border-radius: 10px; }
.member-auth-overlay .member-auth-tab { border-radius: 8px; color: var(--md-mobile-muted, #93969f); }
.member-auth-overlay .member-auth-tab.is-active { color: #34271e; background: var(--md-mobile-accent, #ffd09b); border-color: transparent; box-shadow: none; }
.member-auth-overlay .member-auth-heading h2, .member-auth-overlay .member-auth-field > label { color: var(--md-mobile-text, #e7e7e7); }
.member-auth-overlay .member-auth-input-wrap { background: var(--md-mobile-bg, #111113); border-color: var(--md-mobile-border, rgba(255,255,255,.08)); border-radius: 10px; min-height: 44px; }
.member-auth-overlay .member-auth-input-wrap:focus-within { border-color: var(--md-mobile-accent, #ffd09b); box-shadow: 0 0 0 2px rgba(255,208,155,.1); }
.member-auth-overlay .member-auth-icon, .member-auth-overlay .member-auth-password, .member-auth-overlay .member-auth-send, .member-auth-overlay .member-auth-brand { color: var(--md-mobile-accent, #ffd09b); }
.member-auth-overlay .member-auth-submit { min-height: 44px; border-radius: 10px; background: var(--md-mobile-accent, #ffd09b); color: #34271e; }
.member-auth-overlay .member-auth-submit:hover { background: #ffdcaf; }
.member-auth-overlay .member-auth-input-wrap input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--md-mobile-bg, #111113) inset; caret-color: var(--md-mobile-accent, #ffd09b); }
.member-auth-overlay .member-auth-hint, .member-auth-overlay .member-auth-footer a { color: var(--md-mobile-muted, #93969f); }

/* Persistent four-item footer. Keep the shell markers and safe-area spacing. */
.md-mobile-tabbar-space.van-tabbar__placeholder { height: calc(62px + env(safe-area-inset-bottom, 0px)) !important; }
.md-mobile-tabbar.van-tabbar {
    box-sizing: border-box; min-height: 62px; height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--md-mobile-border, rgba(255,255,255,.08));
    background: var(--md-mobile-surface, #1c1d21);
}
.md-mobile-tabbar.van-tabbar::after { display: none; }
.md-mobile-tabbar .van-tabbar-item { min-height: 52px; min-width: 0; padding: 0; color: var(--md-mobile-muted, #93969f); background: transparent; }
.md-mobile-tabbar .van-tabbar-item__icon { height: 25px; margin-bottom: 4px; font-size: 24px; }
.md-mobile-tabbar .van-tabbar-item__icon .tabbar_item__img { width: 24px; height: 24px; filter: grayscale(1) brightness(1.08); }
.md-mobile-tabbar .van-tabbar-item__text { font: 11px/16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: inherit; }
.md-mobile-tabbar .van-tabbar-item--active { color: var(--md-mobile-accent, #ffd09b); }
.md-mobile-tabbar .van-tabbar-item--active .tabbar_item__img { filter: brightness(0) saturate(100%) invert(88%) sepia(19%) saturate(742%) hue-rotate(332deg) brightness(103%) contrast(101%); }
.md-mobile-tabbar .van-tabbar-item:focus-visible { outline: 2px solid var(--md-mobile-accent, #ffd09b); outline-offset: -3px; border-radius: 8px; }
@media (max-width: 350px) {
    .my .nav .nav_wallet a .nav_right { width: 30px; flex-basis: 30px; }
    .my .nav .nav_wallet > a { padding: 13px 9px; }
    .my .nav .nav_agent li:nth-child(2) span { font-size: 10px; }
}
