* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --ccb-blue: #4a90e2;
    --ccb-blue-light: #b0cfff;
    --ccb-blue-dark: #0066cc;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-page: #f5f7fa;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font-xs: 12px;
    --font-sm: 13px;
    --font-base: 15px;
    --font-md: 17px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 32px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: var(--font-base);
    background: #fff;
    overflow-x: hidden;
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e8f0fe;
    border-top-color: #5aa3f5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: var(--font-base);
    color: #888;
    letter-spacing: 1px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.page {
    display: none;
    min-height: 100vh;
    position: relative;
}

.page.active {
    display: block;
}

#loginPage.page.active {
    display: flex;
}

/* ========== 状态栏 ========== */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(8px + var(--safe-top)) 20px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    position: relative;
    z-index: 10;
}

.status-bar-light {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.status-signal,
.status-wifi {
    width: 18px;
    height: 12px;
    background: currentColor;
    opacity: 0.85;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.status-signal {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill='black' d='M2 14h2v2H2zm4-3h2v5H6zm4-4h2v9h-2zm4-5h2v14h-2zm4-3h2v17h-2z'/%3E%3C/svg%3E");
}

.status-wifi {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill='black' d='M12 14a2 2 0 100-4 2 2 0 000 4zm-5.5-2.5a8 8 0 0111 0l1.4-1.4a10 10 0 00-13.8 0L6.5 11.5zm-3-3a13 13 0 0118 0l1.4-1.4a15 15 0 00-20.8 0L3.5 8.5z'/%3E%3C/svg%3E");
}

.home-indicator {
    position: fixed;
    bottom: calc(6px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    opacity: 0.18;
    z-index: 100;
}

#profilePage .home-indicator {
    bottom: calc(2px + var(--safe-bottom));
}

/* ========== 登录页 ========== */
#loginPage {
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-bg-decoration {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 0;
}

.login-watermark {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.09;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: calc(28px + var(--safe-top)) 20px 0;
    position: relative;
    z-index: 5;
}

.back-button {
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    color: #222;
    display: flex;
    align-items: center;
}

.language-button {
    background: none;
    border: none;
    color: #3d8fd9;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    min-width: 72px;
}

.language-button span {
    font-size: var(--font-xs);
    line-height: 1.3;
    white-space: nowrap;
}

.login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.login-container {
    padding: 52px 28px 0;
}

.greeting {
    font-size: var(--font-3xl);
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.welcome-text {
    font-size: var(--font-md);
    color: #888;
    margin-bottom: 58px;
    font-weight: 400;
}

.input-group {
    margin-bottom: 18px;
}

.password-group {
    display: none;
    margin-bottom: 18px;
    animation: slideDown 0.25s ease;
}

.password-group.visible {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0 12px;
}

.country-code-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 14px;
    flex-shrink: 0;
}

.country-code-text {
    font-size: var(--font-lg);
    color: #333;
    font-weight: 400;
}

.phone-input {
    flex: 1;
    border: none;
    background: none;
    font-size: var(--font-lg);
    outline: none;
    color: #333;
}

.phone-input::placeholder {
    color: #ccc;
    font-size: var(--font-lg);
}

.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 38px;
}

.checkbox-circle {
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
    cursor: pointer;
}

.checkbox-circle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    display: block;
    width: 17px;
    height: 17px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s;
}

.checkbox-circle input:checked + .checkmark {
    border-color: #3d8fd9;
    background: #3d8fd9;
    box-shadow: inset 0 0 0 2.5px #fff;
}

.agreement-text {
    font-size: var(--font-sm);
    color: #999;
    line-height: 1.6;
    cursor: pointer;
}

.agreement-text a {
    color: #0066cc;
    text-decoration: none;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #dce8f8 0%, #d0e0f5 100%);
    color: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 24px;
    font-size: var(--font-lg);
    font-weight: 400;
    cursor: not-allowed;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    box-shadow: none;
    transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}

.login-button.active {
    background: linear-gradient(180deg, #7eb8ff 0%, #5aa3f5 100%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(90, 163, 245, 0.35);
}

.login-button.active:active {
    opacity: 0.88;
}

.footer-links {
    text-align: center;
    font-size: var(--font-base);
    margin-bottom: 0;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
}

.divider {
    margin: 0 8px;
    color: #ccc;
}

.social-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 46px;
    margin-top: auto;
    padding: 0 0 calc(44px + var(--safe-bottom));
}

.social-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.social-button img {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.social-button:active {
    transform: scale(0.92);
}

/* ========== 弹窗 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    width: 82%;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.card-hint {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.5;
}

.password-input,
.card-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: var(--font-lg);
    margin-bottom: 24px;
    outline: none;
    transition: border-color 0.2s;
}

.password-input:focus,
.card-input:focus {
    border-color: var(--ccb-blue);
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-button {
    flex: 1;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: var(--font-lg);
    cursor: pointer;
}

.modal-button.cancel {
    background: #f2f3f5;
    color: #333;
}

.modal-button.confirm {
    background: var(--ccb-blue);
    color: white;
}

/* ========== 个人中心 ========== */
#profilePage {
    background: var(--bg-page);
    padding-bottom: calc(80px + var(--safe-bottom));
}

.profile-top {
    background: linear-gradient(180deg, #dceeff 0%, #e8f3fc 35%, #f0f6fb 70%, var(--bg-page) 100%);
    padding-top: calc(88px + var(--safe-top));
    padding-bottom: 4px;
}

.profile-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    padding: calc(44px + var(--safe-top)) 16px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    background: linear-gradient(180deg, #dceeff 0%, #e8f3fc 100%);
}

.exit-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-base);
    color: #333;
    cursor: pointer;
    padding: 4px 0;
}

.header-icons {
    display: flex;
    gap: 14px;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333;
    padding: 0;
    min-width: 32px;
}

.icon-label {
    font-size: var(--font-xs);
    margin-top: 3px;
    color: var(--text-secondary);
}

.message-icon .badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff4d4f;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 22px;
    text-align: center;
    line-height: 14px;
}

.profile-info {
    padding: 8px 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #d0dce8;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.user-name {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.toggle-name {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
}

.user-level {
    font-size: var(--font-xs);
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(74, 144, 226, 0.15);
    color: var(--ccb-blue);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.last-login {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.promotion-banner {
    position: absolute;
    top: 4px;
    right: 0;
    background: linear-gradient(135deg, #ffb347 0%, #ff8c42 100%);
    color: white;
    padding: 7px 14px 7px 10px;
    border-radius: 20px 0 0 20px;
    font-size: var(--font-sm);
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(255, 140, 66, 0.35);
}

.benefits-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 255, 255, 0.85);
    margin: 0 16px;
    padding: 16px 0;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.stat-item {
    text-align: center;
    padding: 0 4px;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: #eee;
}

.stat-number {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.profile-body {
    padding: 8px 16px 0;
}

.task-section {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.task-section h3 {
    font-size: var(--font-md);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.task-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.task-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.task-title {
    font-size: var(--font-base);
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.task-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
}

.task-button {
    background: linear-gradient(135deg, #ffb74d 0%, #ff8a65 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 138, 101, 0.3);
}

.checkin-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.assets-section {
    margin-bottom: 12px;
}

.assets-section > .section-header {
    padding: 0 4px;
    margin-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 {
    font-size: var(--font-md);
    font-weight: 700;
    color: var(--text-primary);
}

.visibility-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.visibility-button,
.refresh-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    padding: 2px;
}

.more-link,
.edit-link {
    color: var(--ccb-blue-dark);
    text-decoration: none;
    font-size: var(--font-base);
}

.asset-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--card-shadow);
}

.asset-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.asset-item-right {
    text-align: right;
}

.asset-label {
    font-size: var(--font-base);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.asset-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.asset-value-muted {
    font-size: var(--font-2xl);
    color: #ccc;
    font-weight: 600;
}

.service-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.service-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 14px;
    min-height: 110px;
}

.service-card h4 {
    font-size: var(--font-md);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.service-card p {
    font-size: var(--font-sm);
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 10px;
}

.service-link {
    color: var(--ccb-blue-dark);
    text-decoration: none;
    font-size: var(--font-base);
    font-weight: 500;
}

.promo-banner {
    background: linear-gradient(90deg, #fff8e8 0%, #fff3d6 100%);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: var(--font-sm);
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-banner-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.my-services-section {
    background: white;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.my-services-section .section-header {
    margin-bottom: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.service-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    border-radius: 12px;
}

.service-item span:last-child {
    font-size: var(--font-xs);
    color: #333;
}

/* ========== 底部导航 ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(18px + var(--safe-bottom));
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
    z-index: 50;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: #bbb;
    position: relative;
    padding: 4px 12px;
    min-width: 56px;
}

.nav-item.active {
    color: #7b8cff;
}

.nav-active-bg {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: radial-gradient(circle, rgba(123, 140, 255, 0.2) 0%, rgba(123, 140, 255, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.nav-svg {
    position: relative;
    z-index: 1;
}

.nav-label {
    font-size: var(--font-xs);
    position: relative;
    z-index: 1;
}

.nav-item.active .nav-label {
    color: #7b8cff;
    font-weight: 500;
}

/* ========== 银行卡账户总览 ========== */
#bankCardPage {
    background: #eef1f5;
    min-height: 100vh;
    padding-bottom: calc(20px + var(--safe-bottom));
}

.bank-header {
    background: linear-gradient(180deg, #3d94f0 0%, #52a8f8 55%, #6eb8fc 100%);
    padding: calc(12px + var(--safe-top)) 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.bank-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.bank-back-btn,
.bank-icon-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.bank-title {
    font-size: var(--font-lg);
    font-weight: 500;
    color: #fff;
}

.bank-nav-icons {
    display: flex;
    gap: 12px;
}

.bank-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0;
}

.bank-main-tabs {
    display: flex;
    gap: 28px;
}

.bank-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-md);
    padding: 0 0 12px;
    cursor: pointer;
    position: relative;
}

.bank-tab.active {
    color: #fff;
    font-weight: 600;
}

.bank-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

.bank-manage-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: var(--font-base);
    cursor: pointer;
    padding-bottom: 12px;
}

.bank-content {
    padding: 16px;
}

.bank-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.bank-type-tab {
    background: transparent;
    border: none;
    padding: 7px 18px;
    border-radius: 18px;
    font-size: var(--font-base);
    color: #888;
    cursor: pointer;
}

.bank-type-tab.active {
    background: #fff;
    color: #4a9cf5;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.bank-card-box {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.bank-card-deco {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 180px;
    height: 140px;
    background: radial-gradient(ellipse at center, rgba(190, 220, 255, 0.55) 0%, rgba(210, 235, 255, 0.25) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bank-card-deco-pink {
    background: radial-gradient(ellipse at center, rgba(255, 210, 210, 0.5) 0%, rgba(255, 225, 225, 0.2) 45%, transparent 70%);
}

.bank-card-top {
    padding: 14px 16px 10px;
    position: relative;
    z-index: 1;
}

.bank-card-info {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.bank-card-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.bank-card-name {
    font-size: var(--font-md);
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
    line-height: 1.3;
}

.view-card-no {
    font-size: var(--font-sm);
    color: #4a9cf5;
    text-decoration: none;
    font-weight: 400;
    margin-left: 4px;
}

.bank-card-type {
    font-size: var(--font-sm);
    color: #aaa;
}

.bank-sign-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    object-fit: contain;
    object-position: top right;
    pointer-events: none;
    z-index: 3;
}

.bank-card-body {
    padding: 0 16px 14px;
    position: relative;
    z-index: 1;
}

.bank-card-body-wallet {
    padding-bottom: 18px;
}

.bank-balance-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--font-sm);
    color: #aaa;
    margin-bottom: 6px;
}

.bank-eye-btn {
    background: none;
    border: none;
    color: #ccc;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.bank-balance-main {
    display: flex;
    align-items: center;
    min-height: 52px;
    position: relative;
}

.bank-balance-amount {
    flex: 1;
    font-size: var(--font-2xl);
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    line-height: 1.2;
    min-width: 0;
}

.bank-preferred-badge {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
}

.bank-detail-btn {
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #4a9cf5;
    color: #4a9cf5;
    padding: 5px 16px;
    border-radius: 14px;
    font-size: var(--font-sm);
    cursor: pointer;
    margin-left: 8px;
}

.bank-query-btn {
    background: linear-gradient(180deg, #edf5ff 0%, #dcecff 100%);
    border: none;
    color: #4a9cf5;
    padding: 9px 28px;
    border-radius: 18px;
    font-size: var(--font-base);
    cursor: pointer;
    margin-top: 4px;
}

.bank-card-actions {
    display: flex;
    align-items: center;
    border-top: 1px solid #f2f2f2;
    padding: 13px 0;
    position: relative;
    z-index: 1;
    background: #fff;
}

.bank-card-actions a {
    flex: 1;
    text-align: center;
    color: #444;
    text-decoration: none;
    font-size: var(--font-base);
}

.bank-card-actions-3 a {
    flex: 1;
}

.bank-action-divider {
    width: 1px;
    height: 16px;
    background: #eee;
    flex-shrink: 0;
}

.bank-e-account {
    background: linear-gradient(180deg, #f3f7fc 0%, #eef4fb 100%);
    border-radius: 10px;
    padding: 18px 16px;
    margin-top: 4px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.bank-e-account h3 {
    font-size: var(--font-md);
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.bank-e-account p {
    font-size: var(--font-base);
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bank-e-link {
    display: block;
    text-align: center;
    color: #4a9cf5;
    text-decoration: none;
    font-size: var(--font-base);
}

.stat-item-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    width: 100%;
}
