* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {font-family: San Francisco, -apple-system,'Inter', BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* Header styles */
.header {display: flex;justify-content: space-between;
    align-items: center;
    padding:20px 18px 12px 18px;
    background-color: #fff;
}

.headerar{display: flex;justify-content: space-between;
    align-items: center;
    padding:20px 18px 12px 18px;
    background-color: #fff;
}

.header-right img{margin-top:2px;height: 20px;}
.header-righttr img{margin-top:4px;height:20px;}

.header-left {
    display: flex;
    align-items: center;
}

.back-arrow {
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 5px;
}
.headerar-left #back-btn img{height:15px;margin-top: 5px;}

.trx-title {    font-size:18px;
    font-weight: 600;
    color: #021c31;    margin-left: 10px;
}
.header-left a img{height: 23px;margin-top: 4px;}

.flag-icon {margin-left: 12px;margin-top: 4px;}

.header-right {
    display: flex;
    align-items: center;
}

.info-icon {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-style: italic;
}

/* Current price */
.current-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    background-color:#f5f8fe;
}

.price-label {    font-size: 14px;
    color: #2f384c;
}

.price-value {font-size: 14px;
    font-weight: 600;
    color: #232c41;
}

/* Balance section */
.balance-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background-color: #fff;
}

.trx-logo-container {
    margin-bottom: 15px;
}

.red-circle {    height:45px;
    display: block;
    margin-top: 0.5em;
}
.red-circle img{height:100%;} 

.v-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: #fff;
    color: #ff4d4f;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.balance-amount {
    font-size:24px;
    font-weight: 600;
    color:#f7f8fa;
    margin-bottom: 5px;
}

.balance-usd {    font-size: 16px;
    color: #6d778c;    margin-top:3px;
}

.balance-usdusd {     font-size:14px;
    color: #6d778c;
    margin-top: 3px;
    display: flex;
    align-content: center;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 1.1em;
}
.adsy{clear: both;display: block;margin: 0 1em 0 1em;}
.adsy img{width:100%;clear: both;display: block;}


/* Balance details */
.balance-details {    display: flex;
    justify-content: space-around;
    align-items: center;
    padding:10px 30px 20px 30px;
    background-color: #fff;
    border-bottom: 8px solid #f7f8fa;
}

.available-balance, .pledged-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.balance-type {font-size: 16px;color: #757e92;}

.balance-number {font-size:18px;font-weight: 600;color: #232c41;}


/* Transaction tabs */
.transaction-tabs {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eef3fd;
    gap: 20px;
}

.tab {    font-size: 15px;
    color: #232c41;
    cursor: pointer;
    padding-bottom: 5px;
    position: relative;
    margin-right: 15px;
}

.tab.active {    color: #232c41;
    font-weight: 600;
    font-size:15px;
}

.tab.active::after {    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #232c41;
}

.hide-small-transactions {    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #a0a9ba;
}

.hide-small-transactions input[type="checkbox"] {
    margin: 0;
}

.help-icon {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Empty transactions */
.empty-transactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #fff;
}

.empty-image {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-image img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.5;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap:20px;
    padding:17px;
    background-color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.action-buttons button {    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size:18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.transfer-btn {
    background-color: #232c41;
    color: #fff;
}

.action-buttons a{
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    display: flex;text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-buttons a.receive-btn {background-color: #fff;color: #021c31;
    border: 1px solid #232c41;
}

.btn-icon {
    font-size: 14px;
}

/* Transaction content */
.transaction-content {
    min-height: 300px;
    background-color: #fff;
}

.transaction-type {
    display: none;
}

.transaction-type.active {
    display: block;
}

/* Transaction list styles */
.transaction-list {
    padding: 10px 0;
}

.transaction-item-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.transaction-item:hover {
    background-color: #f5f5f5;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 15px;
    color: #10192a;
    margin-bottom: 5px;
}

.transaction-time {    font-size: 15px;
    color: #acabb0;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 600;
}

.transaction-amount.expense {
    color: #f76081;
}

.transaction-amount.income {
    color: #5bbda6;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination a.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.pagination a:hover {
    color: #1890ff;
    border-color: #1890ff;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 80%;
    width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.modal-btn.primary {
    background-color: white;
    color: #333;
    border: 1px solid #e8e8e8;
}

.modal-btn.primary:hover {
    background-color: #f5f5f5;
}

.modal-btn.secondary {
    background-color: #333;
    color: white;
}

.modal-btn.secondary:hover {
    background-color: #555;
}
.header-left {display: flex;align-items: flex-start;width: 50%;align-content: center;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: column;}
.header-left h1 {font-size: 1.21em;font-weight: 600;margin-right: 10px;color: #232c41;display: flex;flex-wrap: nowrap;align-content: center;justify-content: center;align-items: center;}
.header-left h1 img{margin-left: 7px;margin-top: 3px;}


.headerar-left {display: flex;
    width: 50%;
    align-content: space-around;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;}
.headerar-left h1 {font-size: 1.21em;font-weight: 600;margin-right: 10px;color: #232c41;display: flex;flex-wrap: nowrap;align-content: center;justify-content: center;align-items: center;}
.headerar-left h1 img{margin-left: 7px;margin-top: 3px;}




.network {color: #8a91a2;clear: both;display: block;font-weight: initial;font-size: 0.89em;}

.header-right {
    display: flex;
    gap: 15px;
}
.jbquw{    background: url(bj1.png) no-repeat center center;
    background-size: 100% 100%;
    border-radius: 12px;
    padding: 15px;}

.wallet-section {    background: #232c41;
    color: white;
    position: relative;
    margin:0 1em 1em 1em;
    border-radius: 15px;}

.wallet-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:8px;
}

.wallet-section-title {font-size: 13px;
    opacity: 0.9;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 5px;color: #cdf0ff;
}

.gasfree-btn {    background-color: #ffffff;
    border: none;
    color: #67c5b5;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;}

.balance {font-size:22px;margin-bottom: 5px;font-weight: 500;}

.trx-balance {
    font-size: 15px;
    margin-bottom: 15px;
}

.wallet-address {    font-size:14px;
    word-break: break-all;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c4d8fb;
}

.copy-btn {background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 2px;}

.resources {    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    padding-left: 0.7em;padding-right:0.85em;
}

.resource-item {    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 45%;
    flex-wrap: nowrap;
    align-content: space-around;
    justify-content: space-between;
    align-items: stretch;
}

.resource-label {    font-size:13px;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    color:#c1c8d8;
}

.resource-value {    font-size:15px;
    display: flex;
    align-items: center;color: #e7e7ea;
}
.resource-value font{color:#666d80;font-size:15px;}
.resource-value img{height: 10px;margin-left: 4px;}
.resource-bar {
    flex: 1;
    height: 4px;    background-color: #4f4845;
    border-radius: 3px;
    margin-bottom: 1.2em;
}

.notification {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-text {
    font-size: 14px;
    color: #ff6f00;
}

.notification-link {
    color: #4a90e2;
    text-decoration: none;
    margin-left: 5px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
}

.actions {
    padding:10px 0 25px 0!important;
    background-color: white;
    overflow: hidden;
}

.actions .swiper-pagination{bottom:0.25em !important;}
.actions .swiper-pagination-clickable .swiper-pagination-bullet{    background: #ebedf0;
    height: 3px;
    width:13px;
    opacity: 1;
    margin: 0 !important;
    border-radius: 0;}
.actions .swiper-pagination-bullet-active{background:#232c41 !important;}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: calc(100% / 4);
    box-sizing: border-box;
    padding: 0 5px;
}

.swiper-wrapper {
    display: flex;
}

.action-icon {display: flex;align-items: flex-end;justify-content: center;height: 27px;align-content: center;}

.action-label {    font-size: 14px;
    color: #1e212a;
    text-align: center;
    padding-top:7px;
}

.height50 {background-color:#f7f8fa;height:8px;display: block;clear: both;}


.tabs {
    display: flex;
    padding: 0 15px;
    background-color: white;
    margin-bottom: 10px;
}

.tab-item {    padding: 15px 0 13px 0;
    margin-right: 25px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    color: #63666f;
}

.tab-item.active {color: #2c2e43;font-weight: bold;}

.tab-item.active::after {    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 4px;
    background-color: #2c2e43;
    right: 0;
    margin: 0 auto;
    border-radius: 30px;}

.tab-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sort-btn {    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.93em;
    color: #131925;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
}

.add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f0f2f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assets-section {
    background-color: white;
    padding: 0 15px;    min-height: 40em;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f5;
}

.asset-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.asset-info {
    display: flex;
    flex-direction: column;
}

.asset-name {    font-size:17px;
    font-weight: 600;
    color: #232c41;
}

.asset-price {font-size: 13px;
    color: #a6adbe;
}

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

.asset-balance {
    font-size: 17px;
    font-weight: 600;    color: #232c41;
}

.asset-value {font-size: 14px;
    color: #a3aabc;
}

.security-alert {
    background-color: #1a1a1a;
    color: white;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.security-alert-text {
    font-size: 14px;
    line-height: 1.4;
}

.backup-btn {
    background-color: #ff6f00;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.security-alert-close {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    background-color: white;
    padding: 10px 0;
    border-top: 1px solid #f0f2f5;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #666; width: 25%;
}
.nav-item a{text-decoration:none;}
.nav-item.active {color: #4f5667;}

.nav-icon {font-size: 20px;}
.nav-icon img{max-width:80%;display: block;margin:0 auto;}
.nav-label {font-size: 14px;color: #727c90;margin-top:5px;}

.bottom-nav .nav-item:nth-child(1) .nav-icon{background: url(g1.png) no-repeat center bottom;height: 30px;width: 100%;}
.bottom-nav .nav-item:nth-child(2) .nav-icon{background: url(g2.png) no-repeat center bottom;height: 30px;width: 100%;}
.bottom-nav .nav-item:nth-child(3) .nav-icon{background: url(g3.png) no-repeat center bottom;height: 30px;width: 100%;}
.bottom-nav .nav-item:nth-child(4) .nav-icon{background: url(g4.png) no-repeat center bottom;height: 30px;width: 100%;}
.bottom-nav .nav-item:nth-child(2) .nav-icon img {
    display: block;
    margin: 0 auto;
    height: 15px;
    margin-left: 60%;
    margin-top: 2px;
}
.bottom-nav .nav-item:nth-child(4) .nav-icon img {
    display: block;
    margin: 0 auto;
    height: 13px;
    margin-left: 60%;
    margin-top: 2px;
}

.zjtutu{clear: both;display: block;width:100%;}
.zjtutu img{clear: both;display: block;width:100%;}















