/* Wallet Container */
#wallet-section {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* Wallet Header */
#wallet-section .wallet-header {
    margin-bottom: 24px;
    text-align: center;
    padding-top: 15px;
}

#wallet-section .wallet-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.5px;
}

#wallet-section .wallet-header p {
    color: var(--muted);
    font-size: 15px;
}

/* Balance Card - Premium Look */
#wallet-section .balance-card {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#wallet-section .balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

#wallet-section .balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

#wallet-section .balance-card-content {
    position: relative;
    z-index: 1;
}

#wallet-section .balance-label {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#wallet-section .balance-amount {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -1px;
}

#wallet-section .balance-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#wallet-section .balance-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

#wallet-section .balance-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#wallet-section .balance-btn:active {
    transform: translateY(0);
}

#wallet-section .balance-btn i {
    font-size: 16px;
}

/* Wallet Stats Grid */
#wallet-section .wallet-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

#wallet-section .stat-card {
    background: var(--card);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#wallet-section .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

#wallet-section .stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: var(--card-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#wallet-section .stat-card:hover::before {
    opacity: 1;
}

#wallet-section .stat-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

#wallet-section .stat-icon i {
    font-size: 24px;
    color: var(--accent-light);
}

#wallet-section .stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#wallet-section .stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

/* Transactions Section */
#wallet-section .transactions-section {
    background: var(--card);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

#wallet-section .transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

#wallet-section .transactions-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

#wallet-section .filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--bg);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

#wallet-section .filter-tab {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#wallet-section .filter-tab.active {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

#wallet-section .filter-tab:hover:not(.active) {
    background: var(--card-hover);
    color: var(--text-secondary);
}

/* Transaction Item */
#wallet-section .transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 4px;
}

#wallet-section .transaction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#wallet-section .transaction-item:hover {
    background: var(--card-hover);
    border-color: transparent;
    transform: translateX(4px);
}

#wallet-section .transaction-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

#wallet-section .transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

#wallet-section .transaction-icon.credit {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: var(--accent-light);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#wallet-section .transaction-icon.debit {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#wallet-section .transaction-icon.pending {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.1) 100%);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

#wallet-section .transaction-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

#wallet-section .transaction-info p {
    font-size: 13px;
    color: var(--muted);
}

#wallet-section .transaction-right {
    text-align: right;
    flex-shrink: 0;
}

#wallet-section .transaction-amount {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

#wallet-section .transaction-amount.credit {
    color: var(--accent-light);
}

#wallet-section .transaction-amount.debit {
    color: #f87171;
}

#wallet-section .transaction-status {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#wallet-section .transaction-status.completed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--accent-light);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#wallet-section .transaction-status.pending {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

#wallet-section .transaction-status.failed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Payment Methods */
#wallet-section .payment-methods {
    background: var(--card);
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    padding: 24px;
}

#wallet-section .payment-methods h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

#wallet-section .payment-card {
    background: linear-gradient(135deg, var(--card-hover) 0%, var(--card) 100%);
    border: 1px solid var(--border-bright);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#wallet-section .payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

#wallet-section .payment-card:hover {
    border-color: var(--accent);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

#wallet-section .payment-card:hover::before {
    opacity: 1;
}

#wallet-section .payment-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wallet-section .payment-type {
    display: flex;
    align-items: center;
    gap: 14px;
}

#wallet-section .payment-type-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 20px;
}

#wallet-section .payment-type-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

#wallet-section .payment-type-info p {
    font-size: 13px;
    color: var(--muted);
}

#wallet-section .payment-badge {
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#wallet-section .add-payment-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed var(--border-bright);
    color: var(--muted);
    padding: 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

#wallet-section .add-payment-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(34, 197, 94, 0.05);
}

#wallet-section .add-payment-btn i {
    font-size: 16px;
}

/* Responsive Design - Mobile App Like */
@media (max-width: 768px) {
    #wallet-section {
        max-width: 100%;
    }

    #wallet-section .wallet-header {
        margin-bottom: 20px;
    }

    #wallet-section .wallet-header h1 {
        font-size: 26px;
    }

    #wallet-section .wallet-header p {
        font-size: 14px;
    }

    #wallet-section .balance-card {
        padding: 24px;
        border-radius: 18px;
        margin-bottom: 20px;
    }

    #wallet-section .balance-amount {
        font-size: 40px;
    }

    #wallet-section .balance-btn {
        padding: 12px 20px;
        font-size: 13px;
        flex: 1;
        justify-content: center;
    }

    #wallet-section .balance-actions {
        gap: 10px;
    }

    #wallet-section .wallet-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    #wallet-section .stat-card {
        padding: 20px;
        border-radius: 14px;
    }

    #wallet-section .stat-value {
        font-size: 26px;
    }

    #wallet-section .transactions-section,
    #wallet-section .payment-methods {
        padding: 20px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    #wallet-section .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #wallet-section .transactions-header h2 {
        font-size: 20px;
    }

    #wallet-section .filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 3px;
    }

    #wallet-section .filter-tab {
        white-space: nowrap;
        padding: 9px 16px;
    }

    #wallet-section .transaction-item {
        padding: 14px 12px;
        margin-bottom: 2px;
    }

    #wallet-section .transaction-left {
        gap: 12px;
    }

    #wallet-section .transaction-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    #wallet-section .transaction-info h4 {
        font-size: 14px;
    }

    #wallet-section .transaction-info p {
        font-size: 12px;
    }

    #wallet-section .transaction-amount {
        font-size: 15px;
    }

    #wallet-section .transaction-status {
        font-size: 10px;
        padding: 4px 10px;
    }

    #wallet-section .payment-card {
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 10px;
    }

    #wallet-section .payment-type-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    #wallet-section .payment-type-info h4 {
        font-size: 14px;
    }

    #wallet-section .add-payment-btn {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    #wallet-section .balance-actions {
        flex-direction: column;
    }

    #wallet-section .balance-btn {
        width: 100%;
    }

    #wallet-section .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #wallet-section .transaction-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Mobile */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@media screen and (max-width:767px) {
    #wallet-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 50px;
    }
}