  /* background gradient animation */
        @keyframes bgShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-8px); }
            100% { transform: translateY(0px); }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Base styles */
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            font-family: "Poppins", Arial, sans-serif;
            background: linear-gradient(135deg, #8f6bff, #5d34f5, #4f2ce4, #9a79ff);
            background-size: 300% 300%;
            animation: bgShift 12s ease infinite;
            display: flex;
            flex-direction: column;
            color: white;
            overflow-x: hidden;
        }

        /* Header */
        .header {
            padding: 40px 20px 20px;
            animation: fadeIn 1.6s;
        }

        .header h1 {
            font-size: 40px;
            font-weight: 700;
            margin: 0;
        }

        .header p {
            margin-top: 10px;
            font-size: 17px;
            opacity: 0.8;
        }

        /* Dashboard */
        .dashboard {
            margin: 20px auto;
            width: 90%;
            max-width: 500px;
            padding: 35px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(15px);
            display: flex;
            flex-direction: column;
            gap: 20px;
            animation: float 3s ease-in-out infinite;
        }

        /* Welcome message */
        .welcoming {
            font-size: 18px;
            text-align: center;
            margin-bottom: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            animation: fadeIn 1s ease-out;
        }

        /* Button grid */
        .button-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 10px;
        }

        /* Buttons */
        button {
            background: rgba(255, 255, 255, 0.85);
            color: #4a2bd6;
            padding: 16px 20px;
            font-size: 16px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-family: "Poppins", sans-serif;
        }

        button:hover {
            transform: translateY(-3px) scale(1.02);
            background: white;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        }

        button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .logout {
            background: rgba(255, 100, 100, 0.2);
            color: white;
            border: 1px solid rgba(255, 100, 100, 0.4);
        }

        .logout:hover {
            background: rgba(255, 100, 100, 0.3);
        }

        /* Balance display */
        .balance-display {
            text-align: center;
            padding: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            margin-bottom: 20px;
            animation: fadeIn 1s ease-out;
        }

        .balance-amount {
            font-size: 32px;
            font-weight: 700;
            margin: 10px 0;
        }

        .balance-label {
            opacity: 0.8;
            font-size: 14px;
        }

        /* Recent transactions */
        .transactions {
            margin-top: 20px;
            text-align: left;
        }

        .transactions h3 {
            margin-bottom: 15px;
            font-size: 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            padding-bottom: 10px;
        }

        .transaction-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 14px;
        }

        .transaction-details {
            flex: 1;
        }

        .transaction-description {
            font-weight: 500;
        }

        .transaction-date {
            font-size: 12px;
            opacity: 0.7;
            margin-top: 4px;
        }

        .transaction-amount.positive {
            color: #4ade80;
            font-weight: 600;
        }

        .transaction-amount.negative {
            color: #f87171;
            font-weight: 600;
        }

        /* Footer */
        .footer {
            padding: 20px;
            font-size: 14px;
            opacity: 0.7;
            animation: fadeIn 2s;
            margin-top: auto;
        }

        /* Modal for transactions */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(20px);
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            animation: fadeIn 0.3s ease-out;
        }

        .modal h3 {
            margin-top: 0;
            margin-bottom: 20px;
        }

        .modal input {
            width: 100%;
            padding: 15px;
            margin: 10px 0;
            border: none;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 16px;
        }

        .modal input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

        .modal-buttons {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

        .modal-buttons button {
            flex: 1;
        }

        .recipient-info {
            margin-bottom: 10px;
            font-weight: 600;
            color: #fff;
            min-height: 20px;
        }

        /* Loading spinner */
        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }

        /* Responsive */
        @media (max-width: 480px) {
            .header h1 {
                font-size: 32px;
            }
            
            .dashboard {
                padding: 25px 20px;
                margin: 10px;
            }
            
            .button-grid {
                grid-template-columns: 1fr;
            }
            
            .balance-amount {
                font-size: 28px;
            }
        }

/* Button Styles */
.btn-toggle {
    background: #4c51bf;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-toggle:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.btn-primary {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    background: #718096;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-warning {
    background: #ed8936;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #48bb78;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Two-Factor Specific Styles */
.two-factor-content {
    max-width: 500px;
    text-align: center;
}

.qr-container {
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: inline-block;
}

.qr-container img {
    width: 200px;
    height: 200px;
}

.manual-code {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: monospace;
}

.backup-codes-warning {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.backup-codes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 14px;
}

.backup-codes-list span {
    background: #fff;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.success-message {
    padding: 30px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
}

.password-requirements {
    margin-top: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
    font-size: 14px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.password-requirements li {
    margin-bottom: 5px;
    color: #718096;
}

.password-requirements li.valid {
    color: #48bb78;
}

.password-requirements li.invalid {
    color: #f56565;
}

/* Account Info Styles */
.account-info-content {
    max-width: 500px;
}

.account-details {
    text-align: left;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item .label {
    font-weight: 600;
    color: #4a5568;
}

.detail-item .value {
    color: #2d3748;
    font-family: monospace;
}

/* Transaction History Styles */
.transaction-content {
    max-width: 800px;
    max-height: 80vh;
}

.transaction-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.transaction-filters select,
.transaction-filters input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.transaction-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

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

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.type-deposit {
    background: #c6f6d5;
    color: #22543d;
}

.type-withdrawal {
    background: #fed7d7;
    color: #742a2a;
}

.type-transfer {
    background: #bee3f8;
    color: #2c5282;
}

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

.transaction-date {
    color: #718096;
    font-size: 14px;
}

.transaction-description {
    flex-grow: 1;
    margin-left: 15px;
}
/* Settings Options - Only 2 options */
.settings-option {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-option:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    border-color: rgba(143, 107, 255, 0.3);
}

.option-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(143, 107, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text {
    flex: 1;
}

.option-text h4 {
    margin: 0 0 5px 0;
    font-size: 17px;
    font-weight: 600;
    color: white;
}

.option-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.option-arrow {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.settings-option:hover .option-arrow {
    color: #8f6bff;
    transform: translateX(5px);
}

/* Toggle Switch */
.toggle-container {
    width: 50px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-container.active {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.toggle-slider {
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-container.active .toggle-slider {
    left: 26px;
}

/* Password Form */
.password-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.4s ease-out;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h4 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s ease;
}

.password-form input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #8f6bff;
    box-shadow: 0 0 0 3px rgba(143, 107, 255, 0.2);
    outline: none;
}

.form-buttons .btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8f6bff, #5d34f5);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 107, 255, 0.3);
}

#passwordMsg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

#passwordMsg.success {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

#passwordMsg.error {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Close button */
.modal-buttons {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}
/* Transaction History Modal Styles */
.history-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: white;
}

.history-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-controls, .search-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select, 
#historySearch {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

#historySearch::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-export {
    padding: 12px 20px;
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 8px;
    color: #4ade80;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-export:hover {
    background: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.transactions-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.transaction-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-type.deposit::before {
    content: '↑';
    color: #4ade80;
}

.transaction-type.withdraw::before {
    content: '↓';
    color: #f87171;
}

.transaction-type.transfer-out::before {
    content: '→';
    color: #f59e0b;
}

.transaction-type.transfer-in::before {
    content: '←';
    color: #60a5fa;
}

.transaction-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.transaction-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

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

.amount-positive {
    color: #4ade80;
}

.amount-negative {
    color: #f87171;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.page-btn.active {
    background: rgba(143, 107, 255, 0.3);
    border-color: rgba(143, 107, 255, 0.5);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-history {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.7);
}
/* Responsive Design */
@media (max-width: 768px) {
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .setting-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .transaction-filters {
        flex-direction: column;
    }
    
    .backup-codes-list {
        grid-template-columns: 1fr;
    }
}
