/* Wallet Page Styles */
@import url('home.css');

.header {
    justify-content: flex-start;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border);
}

.page-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
}

.balance-btn {
    padding: 8px 16px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.main-content {
    padding: 16px;
    padding-bottom: 100px;
}

/* Add Money Section */
.add-money-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.add-money-section h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.amount-input-group {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.currency {
    padding: 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
}

.amount-input {
    flex: 1;
    padding: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    outline: none;
}

.amount-input::placeholder {
    color: var(--text-muted);
}

.btn-add {
    width: 100%;
    padding: 16px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Tutorial Section */
.tutorial-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.tutorial-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.tutorial-header i {
    color: var(--purple);
    font-size: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Balance Section */
.balance-section {
    margin-bottom: 20px;
}

.balance-card {
    background: linear-gradient(135deg, var(--purple) 0%, #6366f1 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.balance-header .refresh-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
}

/* History Section */
.history-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.history-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.txn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.txn-icon.credit {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.txn-icon.debit {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.txn-info {
    flex: 1;
}

.txn-desc {
    display: block;
    font-weight: 500;
    font-size: 14px;
}

.txn-date {
    font-size: 12px;
    color: var(--text-muted);
}

.txn-amount {
    font-weight: 700;
    font-size: 15px;
}

.txn-amount.credit {
    color: #22c55e;
}

.txn-amount.debit {
    color: #ef4444;
}

.empty {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
}

.instruction-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.payment-method button {
    background: none;
    border: none;
    color: var(--purple);
    cursor: pointer;
}

.note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.btn-confirm {
    width: 100%;
    padding: 16px;
    background: var(--purple);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}