/* Wallet Page Styles */
.wallet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wallet-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
}

.wallet-actions {
    display: flex;
    gap: 12px;
}

.wallet-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balance-header h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.btn-eye {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.btn-eye:hover {
    background: rgba(255, 255, 255, 0.3);
}

.balance-amount {
    margin-bottom: 30px;
}

.balance-amount .amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.balance-amount .change {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.balance-amount .change.positive {
    color: #4ADE80;
}

.balance-amount .change.negative {
    color: #F87171;
}

.balance-breakdown {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.breakdown-item:last-child {
    margin-bottom: 0;
}

.breakdown-item span:last-child {
    font-weight: 600;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.assets-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
}

.asset-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--light);
    border: none;
    border-radius: 6px;
    color: var(--gray);
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--primary);
    background: rgba(10, 132, 255, 0.1);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.assets-table {
    overflow-x: auto;
}

.assets-table table {
    width: 100%;
    border-collapse: collapse;
}

.assets-table th {
    text-align: left;
    padding: 16px 12px;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
}

.assets-table td {
    padding: 20px 12px;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.asset-icon {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.asset-icon.usd {
    background: #10B981;
    color: white;
}

.asset-info div {
    flex: 1;
}

.asset-name {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 2px;
}

.asset-symbol {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.btn-favorite {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    padding: 4px;
}

.btn-favorite:hover {
    color: #F59E0B;
}

.btn-favorite.active {
    color: #F59E0B;
}

.balance {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.balance-usd {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
}

.change {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.change.neutral {
    background: var(--light);
    color: var(--gray);
}

.asset-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border: 1px solid var(--light-gray);
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
}

.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-action.deposit:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.btn-action.withdraw:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-action.trade:hover {
    background: rgba(10, 132, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.recent-transactions,
.wallet-security {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.transaction-item:hover {
    transform: translateX(4px);
    background: white;
    box-shadow: var(--shadow);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.transaction-icon.deposit {
    background: var(--success);
}

.transaction-icon.withdraw {
    background: var(--danger);
}

.transaction-icon.buy {
    background: var(--primary);
}

.transaction-icon.sell {
    background: var(--accent);
}

.transaction-icon.stake {
    background: var(--secondary);
}

.transaction-details {
    flex: 1;
}

.transaction-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.transaction-type {
    font-weight: 500;
    color: var(--dark);
}

.transaction-time {
    color: var(--gray);
    font-size: 0.85rem;
}

.transaction-amount {
    display: flex;
    justify-content: space-between;
}

.transaction-amount .amount {
    font-weight: 600;
    font-family: var(--font-mono);
}

.transaction-amount .amount:first-child {
    color: var(--dark);
}

.transaction-amount .asset {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Wallet Security */
.security-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.security-item:hover {
    background: white;
    box-shadow: var(--shadow);
}

.security-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.security-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.security-info h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.security-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.security-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-status.active {
    color: var(--success);
    font-size: 1.2rem;
}

.btn-enable,
.btn-configure {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enable {
    background: var(--primary);
    color: white;
}

.btn-enable:hover {
    background: #0077E6;
}

.btn-configure {
    background: var(--light);
    color: var(--dark);
}

.btn-configure:hover {
    background: var(--light-gray);
}

/* Responsive Wallet */
@media (max-width: 992px) {
    .wallet-overview {
        grid-template-columns: 1fr;
    }
    
    .wallet-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .wallet-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .wallet-stats {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .asset-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .assets-table {
        font-size: 0.9rem;
    }
}