/* CryptoWallet 组件样式 */
.container {
    width: 100%;
    background-color: #F5F5F5;
    min-height: auto;
    height: fit-content;
    position: relative;
    padding-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container.dark-mode {
    background-color: #000000;
    color: #FFFFFF;
}

.container.dark-mode .header {
    background-color: #000000;
    color: #FFFFFF;
}

.container.dark-mode .wallet-name {
    color: #FFFFFF;
}

.container.dark-mode .header-icon {
    color: #FFFFFF;
}

.container.dark-mode .network-text {
    color: #CCCCCC;
}

.container.dark-mode .total-balance,
.container.dark-mode .balance-dollar,
.container.dark-mode .balance-integer {
    color: #FFFFFF;
}

.container.dark-mode .balance-decimal {
    color: #CCCCCC;
}

.container.dark-mode .balance-eye {
    color: #CCCCCC;
}

.container.dark-mode .balance-change-text,
.container.dark-mode .balance-change-percent {
    color: #FF3D00;
}

.container.dark-mode .balance-change-separator {
    color: #666666;
}

.container.dark-mode .action-button-text {
    color: #FFFFFF;
}

.container.dark-mode .tabs {
    border-bottom-color: #333333;
}

.container.dark-mode .tab-text {
    color: #999999;
}

.container.dark-mode .tab.active {
    border-bottom-color: #FFFFFF;
}

.container.dark-mode .tab.active .tab-text {
    color: #FFFFFF;
}

.container.dark-mode .warning-banner {
    background-color: #1A1A1A;
    border: 1px solid #333333;
}

.container.dark-mode .warning-icon {
    color: #4A9EFF;
}

.container.dark-mode .warning-text {
    color: #4A9EFF;
}

.container.dark-mode .warning-close {
    color: #CCCCCC;
}

.container.dark-mode .crypto-item {
    background-color: #1A1A1A;
}

.container.dark-mode .crypto-name {
    color: #FFFFFF;
}

.container.dark-mode .crypto-value {
    color: #FFFFFF;
}

.container.dark-mode .crypto-amount {
    color: #999999;
}

.container.dark-mode .crypto-change-inline {
    color: #00C853;
}

.container.dark-mode .crypto-change-inline.negative {
    color: #FF3D00;
}

.container.dark-mode .nav-icon {
    color: #999999;
}

.container.dark-mode .nav-item.active .nav-icon {
    color: #FFFFFF;
}

.container.dark-mode .nav-text {
    color: #999999;
}

.container.dark-mode .nav-item.active .nav-text {
    color: #FFFFFF;
}

.container.dark-mode .bottom-nav {
    background-color: #000000;
    border-top-color: #333333;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.wallet-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.avatar-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.wallet-name {
    font-size: 18px;
    font-weight: 600;
}

.wallet-name.ios {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.wallet-name.android {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    font-size: 20px;
    color: #000;
}

.header-icon-container {
    position: relative;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #FF3D00;
}

.scroll-content {
    padding-bottom: 10px;
}

.network-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    gap: 4px;
}

.network-text {
    font-size: 14px;
    color: #666;
}

.balance-container {
    text-align: center;
    padding: 16px 0;
    position: relative;
}

.total-balance {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #333;
}

.balance-dollar {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.balance-integer {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.balance-decimal {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    margin-left: -8px;
}

.balance-eye {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    margin-left: 4px;
}

.balance-change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.balance-change-text,
.balance-change-percent {
    font-size: 16px;
    color: #FF3D00;
    font-weight: 500;
}

.balance-change-text {
    transform: translateX(-6px) !important;
    margin: 0 !important;
}

.balance-change-separator {
    font-size: 16px;
    margin: 0 !important;
    font-weight: 500;
    color: #999999;
}

.balance-change-percent {
    transform: translateX(6px) !important;
    margin: 0 !important;
}

.action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.action-button-icon {
    width: 80px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.action-button-text {
    font-size: 12px;
    color: #000;
    font-weight: 500;
}

.tabs {
    display: flex;
    justify-content: center;
    padding: 0 16px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 16px;
}

.tab {
    padding: 12px 16px;
    margin-right: 8px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-bottom: -1px;
}

.tab.active {
    border-bottom-color: #000;
}

.tab-text {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.tab.active .tab-text {
    color: #000;
    font-weight: 600;
}

.warning-banner {
    display: flex;
    align-items: center;
    background-color: #E3F2FD;
    padding: 12px 16px;
    margin: 0 16px 16px;
    border-radius: 8px;
}

.warning-icon {
    color: #2196F3;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
    font-size: 14px;
    color: #1976D2;
}

.warning-close {
    cursor: pointer;
    color: #666;
    font-size: 18px;
    margin-left: 12px;
    flex-shrink: 0;
}

.crypto-list {
    padding: 0 16px 5px;
}

.crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin: 0 16px 6px;
    background-color: #EAEDF4;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.crypto-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crypto-icon.eth {
    background-color: #FFFFFF;
}

.crypto-icon.eth img {
    border-radius: 20px;
    background-color: #FFFFFF;
}

.crypto-icon.usdc {
    background-color: #2775CA;
}

.crypto-icon.sol {
    background-color: #000000;
}

.crypto-icon.sol img {
    border-radius: 20px;
    background-color: #000000;
}

.crypto-icon.btc {
    background-color: #F7931A;
}

.crypto-icon.bnb {
    background-color: #F3BA2F;
}

.crypto-icon.usdt {
    background-color: #26A17B;
}

.crypto-icon.matic {
    background-color: #8247E5;
}

.crypto-icon.avax {
    background-color: #E84142;
}

.crypto-icon.dot {
    background-color: #E6007A;
}

.chain-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16px;
    height: 16px;
    background-color: #FFFFFF;
    border-radius: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0E0E0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chain-badge img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.chain-badge.sol-badge {
    background-color: #000000;
    border-color: #333;
}

.crypto-info {
    flex: 1;
}

.crypto-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 2px;
}

.crypto-change-inline {
    font-size: 14px;
    font-weight: 500;
}

.crypto-change-inline.positive {
    color: #00C853;
}

.crypto-change-inline.negative {
    color: #FF3D00;
}

.crypto-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.crypto-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
    justify-content: flex-end;
}

.crypto-value {
    font-size: 16px;
    font-weight: 500;
}

.crypto-amount {
    font-size: 14px;
    color: #666;
}

.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
    border-top: 1px solid #E0E0E0;
    background-color: #FFFFFF;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
}

.nav-icon {
    font-size: 24px;
    color: #999;
}

.nav-item.active .nav-icon {
    color: #000;
}

.nav-text {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.nav-item.active .nav-text {
    color: #000;
    font-weight: 600;
    margin-top: 2px;
}

.nav-item-icon {
    margin-bottom: 4px;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.nav-center-button {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976D2;
    font-size: 20px;
    margin-bottom: 12px;
    cursor: pointer;
}

@media (max-width: 414px) {
    .container {
        max-width: 100%;
    }
}

/* Override: remove any background for crypto icons (requested: 图标不要有任何背景) */
.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    background-color: #FFFFFF !important; /* white circular background like screenshot */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    margin-right: 12px;
    flex-shrink: 0;
}

.crypto-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 50%;
    background-color: transparent !important;
    display: block;
}

/* Pool 钱包：状态栏时间颜色根据黑暗模式调整 */
.pool-wallet-container .status-bar-time {
    color: #000000;
}

.pool-status-bar-dark .status-bar-time {
    color: #FFFFFF !important;
}