/* 我的：登录 + 资料 + 资产 */

.tab-page-mine {
    padding: 0;
}

.mine-page {
    padding: 16px 12px calc(16px + var(--safe-bottom));
}

.mine-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.14), rgba(26, 26, 32, 0.95));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: 14px;
}

.mine-profile.has-bg {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-color: rgba(255, 255, 255, 0.16);
}

.mine-profile-veil {
    position: absolute;
    inset: 0;
    /* 仅轻微压暗保证白字可读，不盖住背景色 */
    background: linear-gradient(90deg, rgba(12, 12, 16, 0.28), rgba(12, 12, 16, 0.08));
    pointer-events: none;
    z-index: 0;
}

.mine-profile.has-bg .mine-profile-veil {
    pointer-events: none;
}

.mine-profile > .mine-avatar-wrap,
.mine-profile > .mine-profile-body {
    position: relative;
    z-index: 1;
}

.mine-form-hint {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-muted);
}

.mine-cosmetic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mine-cosmetic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.mine-cosmetic-row.is-on {
    border-color: rgba(201, 162, 39, 0.55);
    background: rgba(201, 162, 39, 0.1);
}

.mine-cosmetic-row.is-locked {
    opacity: 0.55;
}

.mine-cosmetic-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mine-cosmetic-row-text {
    flex: 1;
    min-width: 0;
}

.mine-cosmetic-frame-preview {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-cosmetic-frame-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mine-cosmetic-bg-preview {
    width: 56px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06) center / cover no-repeat;
}

.mine-cosmetic-name {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.3;
}

.mine-cosmetic-lock,
.mine-cosmetic-on {
    margin-top: 3px;
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.mine-cosmetic-on {
    color: var(--color-primary);
}

.mine-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.mine-switch.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mine-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.mine-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: 0.2s;
}

.mine-switch-slider::before {
    position: absolute;
    content: '';
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.mine-switch-input:checked + .mine-switch-slider {
    background: var(--color-primary);
}

.mine-switch-input:checked + .mine-switch-slider::before {
    transform: translateX(18px);
}

.mine-avatar-wrap {
    position: relative;
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mine-avatar {
    position: absolute;
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2418, #1a1a20);
    border: 2px solid rgba(201, 162, 39, 0.35);
    overflow: hidden;
    box-sizing: border-box;
}

.mine-avatar.has-frame {
    border-color: transparent;
}

.mine-avatar img,
.mine-avatar .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mine-avatar-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

.mine-avatar-edit {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #1a1a20;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    font-weight: 700;
    border: 2px solid var(--color-surface);
    box-sizing: border-box;
    pointer-events: none;
}

.mine-profile-body {
    flex: 1;
    min-width: 0;
}

.mine-nickname {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 6px;
}

.mine-profile.has-bg .mine-nickname,
.mine-profile.has-bg .mine-user-id {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.mine-user-id {
    font-size: 16px;
    color: var(--color-text-muted);
}

.mine-user-id span {
    color: var(--color-primary);
    font-weight: 600;
}

.mine-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mine-section-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.mine-section-title-inline {
    margin-bottom: 0;
}

.mine-section-action {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: transparent;
    color: var(--color-primary);
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
}

.mine-asset-log-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mine-asset-log-modal[hidden] {
    display: none !important;
}

.mine-asset-log-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.mine-asset-log-sheet {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    max-height: 78vh;
    background: #16161c;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.mine-asset-log-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 10px;
}

.mine-asset-log-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.mine-asset-log-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 20px;
    line-height: 32px;
    cursor: pointer;
}

.mine-asset-log-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
    -webkit-overflow-scrolling: touch;
}

.mine-asset-log-tab {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
}

.mine-asset-log-tab.is-on {
    color: var(--color-primary);
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.12);
}

.mine-asset-log-body {
    overflow-y: auto;
    padding: 0 14px 16px;
    max-height: 56vh;
}

.mine-asset-log-empty {
    padding: 48px 12px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

.mine-asset-log-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mine-asset-log-item {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.14);
}

.mine-asset-log-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.mine-asset-log-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.mine-asset-log-type.is-recharge { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.mine-asset-log-type.is-consume { color: #f87171; background: rgba(248, 113, 113, 0.12); }
.mine-asset-log-type.is-prize { color: #fbbf24; background: rgba(251, 191, 36, 0.14); }
.mine-asset-log-type.is-exchange { color: #60a5fa; background: rgba(96, 165, 250, 0.14); }

.mine-asset-log-time {
    font-size: 12px;
    color: var(--color-text-muted);
}

.mine-asset-log-detail {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.4;
}

.mine-asset-log-change {
    font-size: 13px;
    color: var(--color-primary);
    line-height: 1.45;
}

.mine-asset-log-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.mine-asset-log-more {
    padding: 12px 0 4px;
}

.mine-asset-log-more-btn {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
}

.mine-assets-panel {
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.mine-section-head-inpanel {
    margin-bottom: 8px;
    padding: 0;
}

.mine-assets-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.mine-assets-summary-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 162, 39, 0.14);
    border-radius: 10px;
    padding: 10px 8px;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.mine-assets-summary-lab {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.mine-assets-summary-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.mine-assets-shop-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 110px;
    overflow-y: auto;
}

.mine-assets-shop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.mine-assets-shop-name {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-assets-shop-val {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: #e8d48b;
}

.mine-assets-shop-empty {
    margin-top: 6px;
    font-size: 10px;
    color: var(--color-text-muted);
}

.mine-shop-assets-entry {
    margin-top: 10px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(201, 162, 39, 0.12);
    cursor: pointer;
}

.mine-shop-assets-entry-arrow {
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1;
}

.mine-asset-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}

.mine-asset-action-btn {
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 8px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.mine-asset-action-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #d4af37, #c9a227);
    color: #1a1a20;
}

.mine-shop-assets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.mine-shop-assets-title {
    font-size: 12px;
    color: var(--color-text-muted);
}

.mine-shop-asset-card {
    background: rgba(15, 15, 18, 0.45);
    border: 1px solid rgba(201, 162, 39, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
}

.mine-shop-asset-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mine-shop-asset-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.mine-shop-asset-name {
    font-size: 14px;
    font-weight: 700;
    color: #f3f3f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-shop-asset-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mine-shop-asset-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mine-shop-asset-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mine-shop-link-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    padding: 7px 0;
    background: rgba(201, 162, 39, 0.14);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.mine-shop-assets-empty {
    margin-top: 10px;
    padding: 14px;
    border-radius: 10px;
    border: 1px dashed rgba(201, 162, 39, 0.18);
    color: var(--color-text-muted);
    font-size: 13px;
    text-align: center;
}

.mine-assets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 360px) {
    .mine-assets {
        grid-template-columns: 1fr;
    }
}

.mine-asset-card {
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 12px;
    padding: 16px 14px;
}

.mine-asset-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.mine-asset-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    word-break: break-all;
}

.mine-asset-value-sm {
    font-size: 17px;
}

.mine-asset-card-balance,
.mine-asset-card-tickets {
    position: relative;
    display: flex;
    flex-direction: column;
}

.mine-exchange-tip {
    margin: -8px 0 16px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.mine-edit-modal[hidden] {
    display: none !important;
}

.mine-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mine-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mine-edit-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 78vh;
    background: var(--color-surface);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-bottom: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mine-edit-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.mine-edit-sheet-title {
    font-size: 20px;
    font-weight: 700;
}

.mine-edit-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mine-edit-sheet-body {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mine-recharge-btn {
    margin-top: 12px;
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.18);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.mine-recharge-btn:active {
    background: rgba(201, 162, 39, 0.28);
}

.mine-recharge-modal[hidden] {
    display: none !important;
}

.mine-recharge-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

body.mine-modal-open {
    overflow: hidden;
}

.mine-recharge-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mine-recharge-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 78vh;
    background: var(--color-surface);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-bottom: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mine-recharge-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.mine-recharge-sheet-head-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.mine-recharge-sheet-title {
    flex-shrink: 0;
    font-size: 20px;
    font-weight: 700;
}

.mine-recharge-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.mine-recharge-sheet-body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.mine-recharge-tip {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
    text-align: center;
}

.mine-recharge-user-id {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-recharge-user-id strong {
    color: var(--color-primary);
    font-weight: 700;
}

.mine-recharge-packages {
    margin-bottom: 4px;
}

.mine-recharge-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.mine-recharge-pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 380px) {
    .mine-recharge-pkg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mine-recharge-pkg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px 14px;
    min-height: 128px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mine-recharge-pkg-card.is-selected {
    border-color: #e8c84a;
    background:
        linear-gradient(165deg, rgba(232, 200, 74, 0.32) 0%, rgba(201, 162, 39, 0.12) 70%);
    box-shadow:
        0 0 0 2px rgba(232, 200, 74, 0.45),
        inset 0 -3px 0 rgba(201, 162, 39, 0.55);
}

.mine-recharge-pkg-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(135deg, #e8c84a 0%, #c9a227 100%);
    border-radius: 0 0 0 8px;
}

.mine-recharge-pkg-check {
    position: absolute;
    left: 0;
    top: 0;
    min-width: 18px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    background: #e8c84a;
    border-radius: 0 0 8px 0;
}

.mine-recharge-pkg-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mine-recharge-pkg-card.is-selected .mine-recharge-pkg-name {
    color: var(--color-text);
}

.mine-recharge-pkg-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    margin-bottom: 8px;
    line-height: 1;
}

.mine-recharge-pkg-currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent, #c9a227);
    padding-bottom: 2px;
}

.mine-recharge-pkg-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-accent, #c9a227);
    letter-spacing: -0.5px;
}

.mine-recharge-pkg-benefit {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
    margin-bottom: 4px;
}

.mine-recharge-pkg-gift {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent, #c9a227);
    line-height: 1.3;
}

.mine-recharge-pkg-gift.is-muted {
    font-weight: 400;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.mine-recharge-footer {
    flex-shrink: 0;
    padding: 8px 16px 8px;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
}

.mine-recharge-submit-btn {
    width: 100%;
    padding: 8px 12px;
    min-height: 36px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    background: #c9a227;
    cursor: pointer;
}

.mine-recharge-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mine-pay-modal[hidden] {
    display: none !important;
}

.mine-pay-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-pay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.mine-pay-sheet {
    position: relative;
    width: min(360px, calc(100vw - 32px));
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 14px;
    overflow: hidden;
}

.mine-pay-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.mine-pay-sheet-title {
    font-size: 17px;
    font-weight: 700;
}

.mine-pay-sheet-body {
    padding: 20px 16px 24px;
    text-align: center;
}

.mine-pay-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 16px;
}

.mine-pay-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 14px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-sizing: content-box;
}

.mine-pay-qr img,
.mine-pay-qr canvas {
    display: block;
    width: 200px !important;
    height: 200px !important;
}

.mine-pay-qr-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    font-size: 13px;
}

.mine-pay-hint {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.mine-pay-status {
    font-size: 14px;
    color: var(--color-accent, #c9a227);
}

.mine-pay-status.is-success {
    color: #3d9a5f;
}

.mine-pay-status.is-timeout {
    color: var(--color-text-muted);
}

.mine-recharge-shop-scroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}

.mine-recharge-shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f3f3f5;
  cursor: pointer;
}

.mine-recharge-shop-chip.is-selected {
  border-color: #f5d76e;
  background: rgba(245, 215, 110, 0.12);
}

.mine-recharge-shop-chip.is-disabled,
.mine-recharge-shop-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mine-recharge-shop-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.mine-recharge-shop-name {
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-recharge-shop-tag {
  font-size: 11px;
  color: #f87171;
}

.mine-pay-shop {
  font-size: 13px;
  color: #a1a1aa;
  margin: 0 0 12px;
  text-align: center;
}

#mine-pay-confirm {
  margin-top: 14px;
  width: 100%;
}

.mine-recharge-shops-loading,
.mine-recharge-shops-empty {
    font-size: 16px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 12px 0;
}

.mine-logout-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: transparent;
    color: var(--color-text-muted);
    font-size: 17px;
    cursor: pointer;
}

.mine-logout-btn:active {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.mine-login-card {
    background: var(--color-surface);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: 14px;
    padding: 20px 16px;
}

.mine-login-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.mine-login-sub {
    font-size: 16px;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.mine-form-group {
    margin-bottom: 14px;
}

.mine-form-label {
    display: block;
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.mine-form-input {
    width: 100%;
    min-height: 52px;
    padding: 14px 14px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 18px;
    outline: none;
}

.mine-form-input:focus {
    border-color: rgba(201, 162, 39, 0.45);
}

.mine-code-row {
    display: flex;
    gap: 10px;
}

.mine-code-row .mine-form-input {
    flex: 1;
    min-width: 0;
}

.mine-code-btn {
    flex-shrink: 0;
    min-width: 120px;
    min-height: 52px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.12);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.mine-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mine-login-btn {
    width: 100%;
    margin-top: 6px;
    min-height: 52px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary);
    color: #1a1a20;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

.mine-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mine-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mine-avatar-preview-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.mine-avatar-preview {
    position: absolute;
    left: 15.5%;
    top: 15.5%;
    width: 69%;
    height: 69%;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 162, 39, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.mine-avatar-preview.has-frame {
    border-color: transparent;
}

.mine-avatar-preview:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mine-avatar-preview img,
.mine-avatar-preview .app-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mine-avatar-preview-mask {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.mine-avatar-upload-hint {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.4;
    text-align: center;
}

.mine-form-file {
    display: none;
}

.mine-form-hint {
    margin-top: 6px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.mine-tip,
.mine-loading,
.mine-error {
    text-align: center;
    padding: 40px 16px;
    font-size: 17px;
    color: var(--color-text-muted);
}

.mine-error {
    color: #f87171;
}

.mine-dev-tip {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px dashed rgba(201, 162, 39, 0.25);
    font-size: 15px;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
}

.mine-dev-tip strong {
    color: var(--color-primary);
}

.mine-login-agree {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    cursor: pointer;
    user-select: none;
}

.mine-login-checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 4px;
    border: 1px solid rgba(201, 162, 39, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0f0f12;
    box-sizing: border-box;
}

.mine-login-checkbox.checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.mine-login-agree-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
    text-align: left;
}

.mine-login-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.mine-protocol-modal {
    position: fixed;
    inset: 0;
    z-index: 420;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mine-protocol-modal[hidden] {
    display: none !important;
}

.mine-protocol-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.mine-protocol-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 72vh;
    background: var(--color-surface);
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.mine-protocol-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mine-protocol-title {
    font-size: 17px;
    font-weight: 700;
}

.mine-protocol-close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mine-protocol-body {
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.mine-protocol-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
    word-break: break-word;
}

body.mine-modal-open {
    overflow: hidden;
}
