/* Trust Wallet 样式 */

.trust-wallet-container {
    width: 100%;
    background-color: #FFFFFF;
    min-height: auto;
    height: fit-content;
    position: relative;
    padding-bottom: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.trust-wallet-container.dark-mode {
    background-color: #0A0A0A;
    color: #FFFFFF;
}

/* Header */
.trust-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-header {
    background-color: #0A0A0A;
}

.trust-header-left {
    display: flex;
    align-items: center;
}

.trust-header-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.trust-wallet-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-wallet-name {
    color: #FFFFFF;
}

.trust-header-right {
    display: flex;
    align-items: center;
}

/* Balance Container */
.trust-balance-container {
    text-align: center;
    padding: 20px 16px;
}

.trust-balance-main {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-balance-main {
    color: #FFFFFF;
}

.trust-balance-change {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #FF3D00;
}

/* Action Buttons */
.trust-action-buttons {
    display: flex;
    justify-content: space-around;
    padding: 20px 16px;
    gap: 12px;
}

.trust-action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.trust-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.trust-action-text {
    font-size: 12px;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* 黑暗模式下按钮文本为白色 */
.trust-wallet-container.dark-mode .trust-action-text {
    color: #FFF;
}

/* Tabs */
.trust-tabs {
    display: flex;
    justify-content: flex-start;
    padding: 0 16px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 16px;
    position: relative;
}

.trust-tab {
    padding: 12px 16px;
    margin-right: 8px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-bottom: -1px;
}

.trust-tab.active {
    border-bottom-color: #0900F5;
}

.trust-wallet-container.dark-mode .trust-tab.active {
    border-bottom-color: #48FF91;
}

.trust-tab-text {
    font-size: 16px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s ease;
}

.trust-tab.active .trust-tab-text {
    color: #000;
    font-weight: 600;
}

.trust-wallet-container.dark-mode .trust-tab.active .trust-tab-text {
    color: #48FF91;
}

.trust-tab-filter {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-tab-icons {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Promo Banner */
.trust-promo-banner {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0 16px 16px;
    background-color: #1A1A1A;
    border: 1px solid #9C27B0;
    border-radius: 12px;
    position: relative;
}

.trust-promo-left {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.trust-promo-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
}

.trust-promo-content {
    flex: 1;
}

.trust-promo-text {
    font-size: 14px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.trust-promo-link {
    font-size: 12px;
    color: #4CAF50;
    cursor: pointer;
}

.trust-promo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    padding: 4px;
}

/* Crypto List */
.trust-crypto-list {
    padding: 0 16px;
}

.trust-crypto-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0F0;
    transition: border-color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-crypto-item {
    border-bottom-color: #1A1A1A;
}

.trust-crypto-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.trust-crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

.trust-crypto-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.trust-chain-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background-color: #FFFFFF;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.trust-chain-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-crypto-info {
    flex: 1;
}

.trust-crypto-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-crypto-name {
    color: #FFFFFF;
}

.trust-crypto-price {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-crypto-price {
    color: #999;
}

.trust-crypto-change-inline {
    font-weight: 500;
}

.trust-crypto-change-inline.positive {
    color: #00C853;
}

.trust-crypto-change-inline.negative {
    color: #FF3D00;
}

.trust-crypto-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trust-crypto-amount {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-crypto-amount {
    color: #999;
}

.trust-crypto-value {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-crypto-value {
    color: #FFFFFF;
}

/* Manage Button */
.trust-manage-button {
    text-align: center;
    padding: 16px;
    color: #0900F5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-manage-button {
    color: #48FF91;
}

/* Bottom Navigation */
.trust-bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #E0E0E0;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.trust-wallet-container.dark-mode .trust-bottom-nav {
    background-color: #0A0A0A;
    border-top-color: #1A1A1A;
}

.trust-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    cursor: pointer;
    gap: 4px;
}

.trust-nav-text {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

.trust-nav-item.active .trust-nav-text {
    color: #000;
    font-weight: 600;
}

.trust-wallet-container.dark-mode .trust-nav-item.active .trust-nav-text {
    color: #48FF91;
}

.trust-nav-item.active i {
    color: #0900F5 !important;
}

.trust-wallet-container.dark-mode .trust-nav-item.active i {
    color: #48FF91 !important;
}

/* Override: remove any background for trust wallet crypto icons (override inline style) */
.trust-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;
}

.trust-crypto-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    border-radius: 50%;
    background-color: transparent !important;
    display: block;
}