.stepper-wrapper {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .stepper-item {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
        }
        .stepper-item::before {
            position: absolute;
            content: "";
            border-bottom: 2px solid #ccc;
            width: 100%;
            top: 20px;
            left: -50%;
            z-index: 2;
        }
        .stepper-item::after {
            position: absolute;
            content: "";
            border-bottom: 2px solid #ccc;
            width: 100%;
            top: 20px;
            left: 50%;
            z-index: 2;
        }
        .stepper-item .step-counter {
            position: relative;
            z-index: 5;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #ccc;
            margin-bottom: 6px;
        }
        .stepper-item.active .step-counter {
            background-color: #4a90e2;
        }
        .stepper-item.completed .step-counter {
            background-color: #4caf50;
        }
        .stepper-item:first-child::before {
            content: none;
        }
        .stepper-item:last-child::after {
            content: none;
        }
        .form-step {
            display: none;
        }
        .form-step.active {
            display: block;
        }
        .pre-filled-indicator {
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 8px;
            background-color: #28a745;
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 16px;
            font-size: 12px;
            font-weight: bold;
        }
        
        /* Fill from Last button styling */
        #fillFromLastBtn {
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        #fillFromLastBtn:hover {
            background-color: #6c757d;
            border-color: #6c757d;
            color: white;
        }
        
        #fillFromLastBtn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        /* Custom field styling */
        .custom-field-row {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #dee2e6;
        }
        
        .custom-field-row:hover {
            background-color: #e9ecef;
        }

        .demo-data-panel .btn-danger {
            border-radius: 50px;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 500;
        }

        /* Enhanced Column Mapping Styles */
        .mapping-table {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .mapping-table th {
            background: linear-gradient(135deg, #495057 0%, #343a40 100%);
            color: white;
            font-weight: 600;
            border: none;
            padding: 1rem;
        }

        .mapping-table td {
            padding: 1rem;
            vertical-align: middle;
            border-color: #e9ecef;
        }

        .mapping-table tbody tr:hover {
            background-color: #f8f9fa;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            transition: all 0.2s ease;
        }

        .confidence-indicator {
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .confidence-high {
            background-color: #d4edda;
            color: #155724;
        }

        .confidence-medium {
            background-color: #fff3cd;
            color: #856404;
        }

        .confidence-low {
            background-color: #f8d7da;
            color: #721c24;
        }

        .field-examples {
            font-size: 0.85rem;
            color: #6c757d;
            font-style: italic;
        }

        .preview-badge {
            font-size: 0.85rem;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            font-weight: 500;
        }

        /* Modern PayPal-style Transactions Section */
        .modern-transactions-card {
            border: none;
            border-radius: 16px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            background: var(--bs-secondary-bg);
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .modern-transactions-card:hover {
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            transform: translateY(-2px);
        }

        .transactions-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid var(--bs-border-color);
            position: relative;
        }

        .transactions-header::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, #0576b9, #47bce8);
            border-radius: 2px;
        }

        .transactions-title-section {
            flex: 1;
        }

        .modern-card-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--bs-body-color);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .modern-card-title i {
            color: #0576b9;
            font-size: 1.5rem;
        }

        .modern-card-subtitle {
            color: var(--bs-secondary-color);
            font-size: 0.95rem;
            margin-bottom: 0;
            font-weight: 400;
        }

        .transactions-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }

        .modern-btn-primary {
            background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
            border: none;
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            font-size: 0.95rem;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(5, 118, 185, 0.2);
            position: relative;
            overflow: hidden;
        }

        .modern-btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .modern-btn-primary:hover::before {
            left: 100%;
        }

        .modern-btn-primary:hover {
            background: linear-gradient(135deg, #03476f 0%, #2cb5d8 100%);
            box-shadow: 0 6px 20px rgba(5, 118, 185, 0.3);
            transform: translateY(-2px);
            color: white;
        }

        .modern-table-container {
            background: var(--bs-body-bg);
            border-radius: 12px;
            padding: 1rem;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .modern-transactions-table {
            margin-bottom: 0;
            border-collapse: separate;
            border-spacing: 0;
        }

        .modern-transactions-table thead {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            position: relative;
        }

        .modern-transactions-table thead::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
            pointer-events: none;
        }

        .modern-transactions-table thead th {
            background: transparent;
            border: none;
            padding: 1.25rem 0.75rem;
            color: #f8fafc;
            font-weight: 700;
            font-size: 0.8rem;
            text-align: center;
            position: relative;
            white-space: nowrap;
            border-bottom: 3px solid rgba(255, 255, 255, 0.1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            user-select: none;
        }

        .modern-transactions-table thead th:first-child {
            border-top-left-radius: 12px;
        }

        .modern-transactions-table thead th:last-child {
            border-top-right-radius: 12px;
        }

        .table-header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
        }

        /* Hide sort arrows from DataTables */
        .modern-transactions-table th.sorting::after,
        .modern-transactions-table th.sorting_asc::after,
        .modern-transactions-table th.sorting_desc::after {
            display: none !important;
        }

        .modern-transactions-table th.sorting::before,
        .modern-transactions-table th.sorting_asc::before,
        .modern-transactions-table th.sorting_desc::before {
            display: none !important;
        }

        .modern-transactions-table tbody tr {
            background: var(--bs-secondary-bg);
            transition: all 0.3s ease;
            border-bottom: 1px solid var(--bs-border-color);
        }

        .modern-transactions-table tbody tr:hover {
            background: var(--bs-tertiary-bg);
            transform: translateX(4px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .modern-transactions-table tbody td {
            padding: 1rem 0.75rem;
            border: none;
            text-align: center;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--bs-body-color);
            position: relative;
            vertical-align: middle;
            white-space: nowrap;
        }

        .modern-transactions-table tbody tr:last-child td {
            border-bottom: none;
        }

        .amount-col {
            font-family: 'Monaco', 'Menlo', monospace;
            font-weight: 600;
        }

        .liabilities-col {
            color: #f56e50;
        }

        .net-worth-col {
            color: #2cb57e;
            font-weight: 700;
        }

        .timestamp-col, .date-col {
            font-size: 0.8rem;
            color: var(--bs-secondary-color);
        }

        .actions-col {
            min-width: 120px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .transactions-header {
                flex-direction: column;
                gap: 1rem;
                align-items: stretch;
            }

            .transactions-actions {
                justify-content: flex-end;
            }

            .modern-card-title {
                font-size: 1.5rem;
            }

            .modern-table-container {
                padding: 0.5rem;
                overflow-x: auto;
            }

            .modern-transactions-table {
                min-width: 1200px;
            }

            .modern-transactions-table thead th,
            .modern-transactions-table tbody td {
                padding: 0.75rem 0.5rem;
                font-size: 0.8rem;
                min-width: 120px;
            }

            .table-header-content {
                font-size: 0.75rem;
                font-weight: 700;
            }
        }

        /* Ensure table fits well */
        .modern-table-container {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .modern-transactions-table {
            table-layout: fixed;
            width: 100%;
            min-width: 1400px;
        }

        /* Loading state */
        .modern-transactions-table.loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .modern-transactions-table.loading tbody::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Dark theme adjustments */
        [data-bs-theme="dark"] .modern-transactions-card {
            background: var(--bs-dark);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        [data-bs-theme="dark"] .modern-table-container {
            background: var(--bs-body-bg);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

                 [data-bs-theme="dark"] .modern-transactions-table tbody tr:hover {
             background: rgba(255, 255, 255, 0.05);
         }

         /* Modern Card-Based Layout Styles */
         .modern-cards-container {
             display: flex;
             flex-direction: column;
             gap: 1.5rem;
         }

         .transaction-card {
             background: var(--bs-secondary-bg);
             border-radius: 20px;
             box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
             border: 1px solid var(--bs-border-color);
             overflow: hidden;
             transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
             position: relative;
             backdrop-filter: blur(10px);
             -webkit-backdrop-filter: blur(10px);
         }

         .transaction-card::before {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             height: 4px;
             background: linear-gradient(90deg, #0576b9, #47bce8, #2cb57e, #f5bd58, #6f42c1);
             background-size: 200% 100%;
             border-radius: 20px 20px 0 0;
             animation: gradientShift 6s ease-in-out infinite;
         }
         
         @keyframes gradientShift {
             0%, 100% { background-position: 0% 50%; }
             50% { background-position: 100% 50%; }
         }

         .transaction-card:hover {
             transform: translateY(-3px);
             box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
         }

         .transaction-card-header {
             padding: 2rem 2rem 1rem;
             display: flex;
             justify-content: space-between;
             align-items: flex-start;
             background: linear-gradient(135deg, rgba(5, 118, 185, 0.05) 0%, rgba(71, 188, 232, 0.05) 50%, rgba(44, 181, 126, 0.03) 100%);
             position: relative;
             overflow: hidden;
         }
         
         .transaction-card-header::after {
             content: '';
             position: absolute;
             top: -50%;
             right: -50%;
             width: 200%;
             height: 200%;
             background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
             animation: float 8s ease-in-out infinite;
         }
         
         @keyframes float {
             0%, 100% { transform: translateY(0px) rotate(0deg); }
             50% { transform: translateY(-10px) rotate(90deg); }
         }

         .transaction-date-info {
             display: flex;
             flex-direction: column;
             gap: 0.5rem;
         }

         .transaction-date {
             display: flex;
             align-items: center;
             gap: 0.5rem;
             color: var(--bs-body-color);
             font-size: 1.1rem;
             font-weight: 600;
         }

         .transaction-date i {
             color: #0576b9;
             font-size: 1rem;
         }

         .transaction-timestamp {
             display: flex;
             align-items: center;
             gap: 0.5rem;
             color: var(--bs-secondary-color);
             font-size: 0.85rem;
         }

         .transaction-timestamp i {
             color: #47bce8;
             font-size: 0.8rem;
         }

         .transaction-net-worth {
             text-align: right;
             padding: 1.5rem;
             background: linear-gradient(135deg, rgba(44, 181, 126, 0.15) 0%, rgba(44, 181, 126, 0.08) 100%);
             border-radius: 16px;
             border: 1px solid rgba(44, 181, 126, 0.3);
             position: relative;
             overflow: hidden;
             backdrop-filter: blur(5px);
             -webkit-backdrop-filter: blur(5px);
         }
         
         .transaction-net-worth::before {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
             background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
             animation: shimmer 4s ease-in-out infinite;
         }
         
         @keyframes shimmer {
             0% { transform: translateX(-100%); }
             100% { transform: translateX(100%); }
         }

         .net-worth-label {
             font-size: 0.85rem;
             color: var(--bs-secondary-color);
             margin-bottom: 0.25rem;
             font-weight: 500;
         }

         .net-worth-amount {
             font-size: 1.5rem;
             font-weight: 700;
             color: #2cb57e;
             font-family: 'Monaco', 'Menlo', monospace;
             position: relative;
             z-index: 1;
             text-shadow: 0 2px 4px rgba(44, 181, 126, 0.3);
         }

         .transaction-card-body {
             padding: 1.5rem 2rem;
         }

         .assets-section {
             margin-bottom: 2rem;
         }

         .section-title {
             display: flex;
             align-items: center;
             gap: 0.5rem;
             font-size: 1.1rem;
             font-weight: 600;
             color: var(--bs-body-color);
             margin-bottom: 1.5rem;
             padding-bottom: 0.5rem;
             border-bottom: 2px solid var(--bs-border-color);
         }

         .section-title i {
             color: #0576b9;
         }

         .asset-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
             gap: 1rem;
         }

         .asset-item, .liability-item {
             display: flex;
             align-items: center;
             gap: 1rem;
             padding: 1.25rem;
             background: var(--bs-body-bg);
             border-radius: 16px;
             border: 1px solid var(--bs-border-color);
             transition: all 0.3s ease;
             position: relative;
             overflow: hidden;
         }
         
         .asset-item::before, .liability-item::before {
             content: '';
             position: absolute;
             top: 0;
             left: -100%;
             width: 100%;
             height: 100%;
             background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
             transition: left 0.8s ease;
         }
         
         .asset-item:hover::before, .liability-item:hover::before {
             left: 100%;
         }

         .asset-item:hover, .liability-item:hover {
             transform: translateY(-2px) scale(1.01);
             box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
             border-color: #0576b9;
             background: linear-gradient(135deg, var(--bs-body-bg) 0%, rgba(5, 118, 185, 0.03) 100%);
         }

         .asset-icon, .liability-icon {
             width: 52px;
             height: 52px;
             border-radius: 14px;
             display: flex;
             align-items: center;
             justify-content: center;
             font-size: 1.3rem;
             color: white;
             flex-shrink: 0;
             position: relative;
             overflow: hidden;
             box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
         }
         
         .asset-icon::after, .liability-icon::after {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
             background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
             border-radius: 14px;
         }

         .asset-icon.cash {
             background: linear-gradient(135deg, #2cb57e 0%, #20c997 100%);
         }

         .asset-icon.investments {
             background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
         }

         .asset-icon.real-estate {
             background: linear-gradient(135deg, #f56e50 0%, #ff6b3d 100%);
         }

         .asset-icon.retirement {
             background: linear-gradient(135deg, #f5bd58 0%, #ffc107 100%);
         }

         .asset-icon.vehicles {
             background: linear-gradient(135deg, #6f42c1 0%, #8b5cf6 100%);
         }

         .asset-icon.personal {
             background: linear-gradient(135deg, #adb5bd 0%, #9599ad 100%);
         }

         .liability-icon {
             background: linear-gradient(135deg, #f56e50 0%, #dc3545 100%);
         }

         .asset-details, .liability-details {
             flex: 1;
         }

         .asset-label, .liability-label {
             font-size: 0.9rem;
             color: var(--bs-secondary-color);
             margin-bottom: 0.25rem;
             font-weight: 500;
         }

         .asset-amount, .liability-amount {
             font-size: 1.1rem;
             font-weight: 600;
             color: var(--bs-body-color);
             font-family: 'Monaco', 'Menlo', monospace;
             position: relative;
             transition: all 0.3s ease;
         }
         
         .asset-amount:hover, .liability-amount:hover {
             transform: scale(1.02);
             text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
         }

         .liability-amount {
             color: #f56e50;
         }

         .transaction-card-footer {
             padding: 1.5rem 2rem;
             background: rgba(5, 118, 185, 0.02);
             border-top: 1px solid var(--bs-border-color);
         }

         .card-actions {
             display: flex;
             gap: 0.75rem;
             justify-content: flex-end;
         }

         .card-action-btn {
             border-radius: 10px;
             padding: 0.6rem 1.2rem;
             font-weight: 500;
             transition: all 0.3s ease;
             border-width: 2px;
             position: relative;
             overflow: hidden;
         }
         
         .card-action-btn::before {
             content: '';
             position: absolute;
             top: 0;
             left: -100%;
             width: 100%;
             height: 100%;
             background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
             transition: left 0.6s ease;
         }
         
         .card-action-btn:hover::before {
             left: 100%;
         }

         .card-action-btn:hover {
             transform: translateY(-1px) scale(1.02);
             box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
         }

         /* View Toggle Styles */
         .view-toggle-container {
             display: flex;
             justify-content: center;
             margin: 2rem 0;
         }

         .view-toggle-wrapper {
             display: flex;
             background: var(--bs-body-bg);
             border-radius: 12px;
             padding: 0.25rem;
             border: 1px solid var(--bs-border-color);
         }

         .view-toggle-btn {
             background: transparent;
             border: none;
             padding: 0.75rem 1.5rem;
             border-radius: 12px;
             color: var(--bs-secondary-color);
             font-weight: 500;
             transition: all 0.3s ease;
             display: flex;
             align-items: center;
             gap: 0.5rem;
             position: relative;
             overflow: hidden;
         }
         
         .view-toggle-btn::before {
             content: '';
             position: absolute;
             top: 0;
             left: -100%;
             width: 100%;
             height: 100%;
             background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
             transition: left 0.7s ease;
         }
         
         .view-toggle-btn:hover::before {
             left: 100%;
         }

         .view-toggle-btn.active {
             background: linear-gradient(135deg, #0576b9 0%, #47bce8 100%);
             color: white;
             box-shadow: 0 4px 15px rgba(5, 118, 185, 0.2);
         }

         .view-toggle-btn:hover:not(.active) {
             background: var(--bs-tertiary-bg);
             color: var(--bs-body-color);
         }

         /* Table View Container */
         .table-view-container {
             background: var(--bs-body-bg);
             border-radius: 12px;
             padding: 1rem;
             box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
         }

         /* Responsive Design */
         @media (max-width: 768px) {
             .transaction-card-header {
                 flex-direction: column;
                 gap: 1rem;
                 padding: 1.5rem;
             }

             .transaction-net-worth {
                 text-align: left;
                 width: 100%;
             }

             .transaction-card-body {
                 padding: 1rem 1.5rem;
             }

             .asset-grid {
                 grid-template-columns: 1fr;
                 gap: 1rem;
             }

             .asset-item, .liability-item {
                 padding: 1rem;
             }

             .asset-icon, .liability-icon {
                 width: 44px;
                 height: 44px;
                 font-size: 1.1rem;
             }

             .card-actions {
                 justify-content: center;
                 gap: 0.5rem;
             }
             
             .card-action-btn {
                 padding: 0.5rem 1rem;
                 font-size: 0.8rem;
             }

             .view-toggle-wrapper {
                 width: 100%;
             }

             .view-toggle-btn {
                 flex: 1;
                 justify-content: center;
             }
         }

         /* Animation for card appearance */
         @keyframes cardFadeIn {
             from {
                 opacity: 0;
                 transform: translateY(20px) scale(0.95);
             }
             to {
                 opacity: 1;
                 transform: translateY(0) scale(1);
             }
         }

         .transaction-card {
             animation: cardFadeIn 0.6s ease-out;
         }
         
         /* Enhanced visual effects for transaction cards */
         .transaction-card::after {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
             background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
                         radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.03) 0%, transparent 50%);
             pointer-events: none;
             opacity: 0;
             transition: opacity 0.5s ease;
         }
         
         .transaction-card:hover::after {
             opacity: 1;
         }
         
         /* Enhanced section titles */
         .section-title {
             position: relative;
             overflow: hidden;
         }
         
         .section-title::after {
             content: '';
             position: absolute;
             bottom: 0;
             left: 0;
             width: 100%;
             height: 2px;
             background: linear-gradient(90deg, #0576b9, #47bce8, #2cb57e);
             transform: scaleX(0);
             transform-origin: left;
             transition: transform 0.3s ease;
         }
         
         .section-title:hover::after {
             transform: scaleX(1);
         }
         
         /* Enhanced asset grid responsiveness */
         .asset-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
             gap: 1.25rem;
             margin-bottom: 1rem;
         }
         
         /* Enhanced liability section */
         .liabilities-section {
             margin-top: 2rem;
             padding-top: 1.5rem;
             border-top: 1px solid var(--bs-border-color);
             position: relative;
         }
         
         .liabilities-section::before {
             content: '';
             position: absolute;
             top: -1px;
             left: 0;
             right: 0;
             height: 1px;
             background: linear-gradient(90deg, transparent, var(--bs-border-color), transparent);
         }

         /* Dark theme enhancements */
         [data-bs-theme="dark"] .transaction-card {
             background: rgba(30, 41, 59, 0.8);
             border-color: rgba(255, 255, 255, 0.1);
         }

         [data-bs-theme="dark"] .transaction-card:hover {
             background: rgba(30, 41, 59, 0.95);
         }

         [data-bs-theme="dark"] .asset-item,
         [data-bs-theme="dark"] .liability-item {
             background: rgba(15, 23, 42, 0.6);
             border-color: rgba(255, 255, 255, 0.1);
         }

         [data-bs-theme="dark"] .asset-item:hover,
         [data-bs-theme="dark"] .liability-item:hover {
             background: rgba(15, 23, 42, 0.8);
         }

        /* Account dropdown styles */
        .account-count-clickable {
            cursor: pointer;
            transition: all 0.3s ease;
            user-select: none;
        }

        .account-count-clickable:hover {
            color: #28a745 !important;
            text-decoration: underline;
        }

        .account-count-clickable i {
            transition: transform 0.3s ease;
            font-size: 0.8em;
        }

        .account-count-clickable[aria-expanded="true"] i {
            transform: rotate(180deg);
        }

        .account-details-container {
            border: 1px solid #495057;
            border-radius: 8px;
            background-color: #343a40;
        }

        .account-detail-item {
            transition: background-color 0.2s ease;
        }

        .account-detail-item:hover {
            background-color: #495057;
        }

        .account-details-container .account-detail-item:last-child {
            border-bottom: none !important;
        }

        .account-type-badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-weight: 500;
        }

        .account-type-manual {
            background-color: #fff3cd;
            color: #856404;
        }

        .account-type-connected {
            background-color: #d4edda;
            color: #155724;
        }

        /* Modern Edit Modal Styles - Dark Theme */
        .modern-modal {
            background: #2b2b2b;
            border: 1px solid #495057;
            border-radius: 16px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }

        .modern-modal-header {
            background: #343a40;
            border: none;
            border-radius: 16px 16px 0 0;
            padding: 1.5rem;
            border-bottom: 1px solid #495057;
        }

        .modern-modal-title {
            color: #ffffff;
            font-weight: 600;
            font-size: 1.25rem;
        }

        .modern-close-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #495057;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .modern-close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: #6c757d;
            color: #ffffff;
            transform: rotate(90deg);
        }

        .modern-modal-body {
            background: #2b2b2b;
            border-radius: 0 0 16px 16px;
            color: #ffffff;
        }

        .modern-form-label {
            color: #ffffff;
            font-weight: 600;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        .modern-form-control {
            border: 2px solid #495057;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #343a40;
            color: #ffffff;
        }

        .modern-form-control:focus {
            border-color: #28a745;
            box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
            background: #343a40;
            color: #ffffff;
            transform: translateY(-1px);
        }

        .modern-input-group {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .modern-input-group-text {
            background: #28a745;
            color: white;
            border: none;
            font-weight: 600;
            padding: 0.75rem 1rem;
        }

        .modern-btn-primary {
            background: #28a745;
            border: none;
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        }

        .modern-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
            background: #218838;
        }

        .modern-btn-secondary {
            background: rgba(108, 117, 125, 0.2);
            border: 2px solid #6c757d;
            border-radius: 12px;
            padding: 0.75rem 1.5rem;
            color: #ffffff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        .modern-btn-secondary:hover {
            background: #6c757d;
            color: white;
            transform: translateY(-1px);
        }

        .currency-display {
            display: none !important;
        }

        .mapping-summary-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 1px solid #dee2e6;
            border-radius: 12px;
        }

        .mapping-summary-card .card-header {
            background: linear-gradient(135deg, #495057 0%, #343a40 100%);
            color: white;
            border: none;
            border-radius: 12px 12px 0 0;
        }

        .help-card {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border: 1px solid #90caf9;
            border-radius: 12px;
        }

        .help-card .card-header {
            background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
            color: white;
            border: none;
            border-radius: 12px 12px 0 0;
        }

        .examples-card {
            background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
            border: 1px solid #ce93d8;
            border-radius: 12px;
        }

        .examples-card .card-header {
            background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
            color: white;
            border: none;
            border-radius: 12px 12px 0 0;
        }

        .notes-card {
            background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
            border: 1px solid #ffcc02;
            border-radius: 12px;
        }

        .notes-card .card-header {
            background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
            color: white;
            border: none;
            border-radius: 12px 12px 0 0;
        }

        /* Tooltip enhancements */
        .tooltip {
            font-size: 0.9rem;
        }

        .tooltip-inner {
            max-width: 300px;
            padding: 0.75rem;
            background-color: #23272f !important;
            color: #ffe082 !important;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.25);
            border: 1px solid #ffb300;
        }

        /* Enhanced Mobile-Responsive Column Mapping */
        @media (max-width: 768px) {
            body {
                overflow-x: hidden;
            }
            .modal {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }
            #mappingModal .modal-dialog {
                margin: 0.5rem;
                max-width: calc(100vw - 1rem);
            }
            #mappingModal .modal-content {
                border-radius: 12px;
                background: #23272f;
                color: #e0e0e0;
            }
            #mappingModal .modal-header {
                padding: 1rem 1rem 0.5rem 1rem;
                border-bottom: 1px solid #343a40;
                background: #23272f;
            }
            #mappingModal .modal-title {
                font-size: 1.1rem;
                line-height: 1.3;
                color: #ffe082;
            }
            #mappingModal .modal-body {
                padding: 1rem;
                background: #23272f;
            }
            .mapping-table thead {
                display: none;
            }
            .mapping-table,
            .mapping-table tbody,
            .mapping-table tr,
            .mapping-table td {
                display: block;
                width: 100%;
                border: none;
                padding: 0;
                margin: 0;
                background: transparent;
            }
            .mapping-table tbody tr {
                background: #23272f;
                border: 1px solid #343a40;
                border-radius: 10px;
                margin-bottom: 1.25rem;
                padding: 1rem 0.75rem 0.5rem 0.75rem;
                box-shadow: 0 2px 8px rgba(0,0,0,0.10);
                transition: all 0.2s ease;
            }
            .mapping-table tbody tr:hover {
                box-shadow: 0 4px 16px rgba(0,0,0,0.18);
                background: #181b20;
                border-color: #22252a;
            }
            .mapping-table td {
                margin-bottom: 0.75rem;
                padding: 0;
            }
            .mapping-table td:last-child {
                margin-bottom: 0;
            }
            .mapping-table td::before {
                content: attr(data-label);
                display: block;
                font-weight: 600;
                color: #b0b0b0;
                font-size: 0.8rem;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                margin-bottom: 0.25rem;
                padding-bottom: 0.1rem;
            }
            .mapping-table td:first-child::before { content: "\1F4C8  Your Excel Column"; }
            .mapping-table td:nth-child(2)::before { content: "\1F3AF  Suggested Mapping"; }
            .mapping-table td:nth-child(3)::before { content: "\2699\FE0F  Action"; }
            .mapping-table td:nth-child(4)::before { content: "\1F441\FE0F  Preview"; }
            .mapping-table .form-select {
                width: 100% !important;
                font-size: 0.98rem;
                padding: 0.6rem 0.9rem;
                border-radius: 7px;
                border: 1.5px solid #343a40;
                background-color: #23272f;
                color: #e0e0e0;
                margin-bottom: 0.25rem;
            }
            .mapping-table .form-select:focus {
                border-color: #ffe082;
                background-color: #23272f;
                color: #ffe082;
                box-shadow: 0 0 0 0.15rem rgba(255,224,130,0.10);
            }
            .confidence-indicator {
                display: inline-flex;
                align-items: center;
                gap: 0.25rem;
                padding: 0.3rem 0.7rem;
                border-radius: 14px;
                font-size: 0.8rem;
                font-weight: 600;
                margin-top: 0.3rem;
                background: #23272f;
                border: 1px solid #343a40;
            }
            .confidence-high { background-color: #2e7d32; color: #ffe082; }
            .confidence-medium { background-color: #b59f3b; color: #23272f; }
            .confidence-low { background-color: #c62828; color: #ffe082; }
            .preview-badge {
                display: inline-block;
                padding: 0.5rem 0.7rem;
                border-radius: 7px;
                font-weight: 500;
                font-size: 0.92rem;
                text-align: center;
                width: 100%;
                margin-top: 0.3rem;
                background: linear-gradient(90deg, #1976d2 0%, #4a90e2 100%);
                color: #ffe082;
                box-shadow: 0 1px 3px rgba(25,118,210,0.10);
            }
            .mapping-table small.text-muted {
                font-size: 0.85rem;
                line-height: 1.4;
                margin-top: 0.3rem;
                padding: 0.4rem 0.5rem;
                background-color: #23272f;
                border-radius: 5px;
                border-left: 3px solid #ffe082;
                color: #b0b0b0;
            }
            .alert-info {
                border-radius: 10px;
                padding: 1rem;
                margin-bottom: 1.2rem;
                background: #1976d2;
                color: #ffe082;
                border: 1px solid #343a40;
            }
            .alert-info .d-flex {
                flex-direction: column;
                align-items: flex-start;
            }
            .alert-info .fa-info-circle {
                margin-bottom: 0.5rem;
                font-size: 1.3rem;
                color: #ffe082;
            }
            .alert-info h6, .alert-info p, .alert-info li, .alert-info strong {
                color: #ffe082;
            }
            #mappingModal .modal-footer {
                padding: 1rem;
                border-top: 1px solid #343a40;
                flex-direction: column;
                gap: 0.6rem;
                background-color: #23272f;
            }
            #mappingModal .btn {
                width: 100%;
                padding: 0.8rem 1rem;
                font-size: 1rem;
                font-weight: 600;
                border-radius: 8px;
                min-height: 44px;
                transition: all 0.2s ease;
            }
            #mappingModal .btn-primary {
                background: linear-gradient(135deg, #1976d2 0%, #4a90e2 100%);
                border: none;
                color: #ffe082;
                box-shadow: 0 2px 8px rgba(25,118,210,0.18);
            }
            #mappingModal .btn-primary:hover {
                background: linear-gradient(135deg, #4a90e2 0%, #1976d2 100%);
                color: #fffde7;
            }
            #mappingModal .btn-secondary {
                background-color: #343a40;
                border: none;
                color: #ffe082;
            }
            #mappingModal .btn-secondary:hover {
                background-color: #23272f;
                color: #fffde7;
            }
        }
        
        /* Tablet-specific adjustments */
        @media (min-width: 769px) and (max-width: 1024px) {
            #mappingModal .modal-dialog {
                max-width: 90vw;
            }
            
            .mapping-table th,
            .mapping-table td {
                padding: 0.75rem;
            }
            
            .mapping-table .form-select {
                font-size: 0.9rem;
            }
        }

        /* Animation for mapping suggestions */
        .mapping-suggest option {
            transition: background-color 0.2s ease;
        }

        .mapping-suggest option:hover {
            background-color: #e3f2fd;
        }

        /* Enhanced form controls */
        .form-select.mapping-suggest,
        .form-select.mapping-action {
            border-radius: 8px;
            border: 2px solid #e9ecef;
            transition: all 0.2s ease;
        }

        .form-select.mapping-suggest:focus,
        .form-select.mapping-action:focus {
            border-color: #007bff;
            box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
        }

        /* Summary statistics styling */
        .summary-stat {
            text-align: center;
            padding: 1rem;
            border-radius: 8px;
            background: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        .summary-stat .h4 {
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .summary-stat small {
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* NEW: Account Guidance Styles */
        #accountGuidanceSection {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #1976d2;
            border-radius: 12px;
        }

        #accountGuidanceSection .card-body {
            padding: 1.5rem;
        }

        #accountGuidanceSection .card-title {
            color: #60a5fa;
            font-weight: 600;
        }

        #accountGuidanceSection .card-text {
            color: #e0e0e0;
            line-height: 1.6;
        }

        /* NEW: Power User Optimization Notification Styles */
        #powerUserOptimizationNotification,
        #accountsPageOptimizationNotification {
            animation: slideInDown 0.5s ease-out;
            box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
            border: none !important;
        }

        #powerUserOptimizationNotification .alert-heading,
        #accountsPageOptimizationNotification .alert-heading {
            font-weight: 700;
            font-size: 1.1rem;
        }

        #powerUserOptimizationNotification .btn-info,
        #accountsPageOptimizationNotification .btn-info {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            border: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        #powerUserOptimizationNotification .btn-info:hover,
        #accountsPageOptimizationNotification .btn-info:hover {
            background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
        }

        #powerUserOptimizationNotification .btn-outline-info,
        #accountsPageOptimizationNotification .btn-outline-info {
            border-color: #17a2b8;
            color: #17a2b8;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        #powerUserOptimizationNotification .btn-outline-info:hover,
        #accountsPageOptimizationNotification .btn-outline-info:hover {
            background-color: #17a2b8;
            border-color: #17a2b8;
            color: white;
        }

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

        /* Power user star animation */
        #powerUserOptimizationNotification .fa-star,
        #accountsPageOptimizationNotification .fa-star {
            animation: starPulse 2s ease-in-out infinite;
        }

        @keyframes starPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        #noAccountsNudge {
            border-radius: 12px;
            border: 1px solid #f59e42;
            background: linear-gradient(135deg, #2d2a1f 0%, #4b3f1c 100%);
        }

        #noAccountsNudge .alert-heading {
            color: #ffb300;
            font-weight: 700;
        }

        #noAccountsNudge p {
            color: #ffe082;
            margin-bottom: 1rem;
        }

        #noAccountsNudge .btn-warning {
            background-color: #ffb300;
            color: #222;
            border: none;
        }
        #noAccountsNudge .btn-warning:hover {
            background-color: #ffa000;
            color: #fff;
        }
        #noAccountsNudge .btn-outline-warning {
            color: #ffb300;
            border-color: #ffb300;
        }
        #noAccountsNudge .btn-outline-warning:hover {
            background-color: #ffb300;
            color: #222;
        }
        #noAccountsNudge .why-add-accounts-tooltip {
            color: #ffe082 !important;
            text-decoration: underline;
        }
        #noAccountsNudge .why-add-accounts-tooltip:hover {
            color: #fffde7 !important;
        }

        #accountSummarySection {
            background: linear-gradient(135deg, #23272f 0%, #374151 100%);
            border: 1px solid #28a745;
            border-radius: 12px;
        }

        #accountSummarySection .card-title {
            color: #34d399;
            font-weight: 600;
        }

        #accountSummarySection .card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            border-radius: 8px;
            background: #23272f;
            color: #e0e0e0;
        }

        #accountSummarySection .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        #accountSummarySection .card-body {
            padding: 1rem;
        }

        #accountSummarySection .fw-bold {
            font-size: 1.1rem;
        }

        /* Responsive adjustments for account guidance */
        @media (max-width: 768px) {
            #accountGuidanceSection .col-md-4 {
                text-align: center !important;
                margin-top: 1rem;
            }
            
            #noAccountsNudge .d-flex {
                flex-direction: column;
            }
            
            #noAccountsNudge .d-flex .gap-2 {
                margin-top: 1rem;
            }
        }

        /* Spreadsheet Import Nudge Styles */
        #spreadsheetImportNudge {
            border-left: 5px solid #17a2b8;
            background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
            border-radius: 8px;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 8px rgba(23, 162, 184, 0.15);
        }

        #spreadsheetImportNudge .alert-heading {
            color: #0c5460;
            font-weight: 600;
        }

        #spreadsheetImportNudge p {
            color: #0c5460;
            margin-bottom: 0.75rem;
        }

        #spreadsheetImportNudge .btn-info {
            background-color: #17a2b8;
            border-color: #17a2b8;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        #spreadsheetImportNudge .btn-info:hover {
            background-color: #138496;
            border-color: #117a8b;
            transform: translateY(-1px);
        }

        #spreadsheetImportNudge .btn-outline-info {
            color: #17a2b8;
            border-color: #17a2b8;
            font-weight: 500;
        }

        #spreadsheetImportNudge .btn-outline-info:hover {
            background-color: #17a2b8;
            border-color: #17a2b8;
            color: white;
        }

        #spreadsheetImportNudge .import-benefits-tooltip {
            color: #0c5460;
            font-size: 0.9rem;
        }

        #spreadsheetImportNudge .import-benefits-tooltip:hover {
            color: #17a2b8;
            text-decoration: underline !important;
        }

        #spreadsheetImportNudge .d-flex {
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        #spreadsheetImportNudge .d-flex .gap-2 {
            gap: 0.5rem !important;
        }

        @media (max-width: 576px) {
            #spreadsheetImportNudge .d-flex {
                flex-direction: column;
            }
            
            #spreadsheetImportNudge .d-flex .gap-2 {
                margin-top: 1rem;
            }
        }

        /* Modern Card Styling */
        .card {
            border: none;
            border-radius: 15px;
            box-shadow: 0 0 20px rgba(0,0,0,0.05);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        }

        .card-body {
            padding: 1.5rem;
        }

        /* Modern Table Styling */
        #transactionsTable {
            border-collapse: separate;
            border-spacing: 0 8px;
            margin-top: -8px;
        }

        #transactionsTable thead th {
            padding: 1rem;
            font-weight: 600;
            color: #495057;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        #transactionsTable tbody tr {
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            transition: all 0.2s ease;
        }

        #transactionsTable tbody tr:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        }

        #transactionsTable tbody td {
            padding: 1rem;
            border: none;
            vertical-align: middle;
        }

        /* Search and Length Controls */
        .dataTables_wrapper .dataTables_filter input {
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 0.6rem 1rem;
            width: 300px;
            transition: all 0.2s ease;
        }

        .dataTables_wrapper .dataTables_filter input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.1);
        }

        .dataTables_wrapper .dataTables_length select {
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 0.6rem 2rem 0.6rem 1rem;
            transition: all 0.2s ease;
        }

        .dataTables_wrapper .dataTables_length select:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.1);
        }

        /* Action Buttons Styling */
        .btn-group .btn {
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            transition: all 0.2s ease;
        }

        .btn-group .btn:hover {
            transform: translateY(-1px);
        }

        .btn-group .btn-outline-primary {
            border-color: #e9ecef;
            color: #6c757d;
        }

        .btn-group .btn-outline-primary:hover {
            background: #f8f9fa;
            border-color: #dee2e6;
            color: #0d6efd;
        }

        .btn-group .btn-outline-danger {
            border-color: #e9ecef;
            color: #6c757d;
        }

        .btn-group .btn-outline-danger:hover {
            background: #fff5f5;
            border-color: #ffcdd2;
            color: #dc3545;
        }

        /* Export Button Styling */
        .btn-primary {
            border-radius: 10px;
            padding: 0.6rem 1.2rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(13,110,253,0.2);
        }

        /* Mobile Responsiveness */
        @media (max-width: 767.98px) {
            .card-body {
                padding: 1rem;
            }

            #transactionsTable {
                border-spacing: 0 4px;
            }

            #transactionsTable thead th,
            #transactionsTable tbody td {
                padding: 0.75rem;
            }

            .dataTables_wrapper .dataTables_filter input {
                width: 100%;
                margin: 0.5rem 0;
            }

            .btn-group .btn {
                padding: 0.4rem 0.6rem;
            }
        }

        /* Hide pagination and search elements */
        .dataTables_paginate,
        .dataTables_length,
        .dataTables_info,
        .dataTables_filter {
            display: none !important;
        }

        .demo-data-panel {
            background-color: #2a3042;
            border: 1px solid #32394e;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
            text-align: center;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        }

        .demo-data-panel .icon-rocket {
            font-size: 3rem;
            color: #556ee6;
            margin-bottom: 1rem;
        }

        .demo-data-panel h4 {
            font-weight: 600;
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
        }

        .demo-data-panel p {
            color: #a6b0cf;
            margin-bottom: 1.5rem;
        }

        .demo-data-panel .btn-danger {
            border-radius: 50px;
            padding: 12px 30px;
            font-size: 1rem;
            font-weight: 500;
        }

/* Modern PayPal-inspired Import Preview Modal Styles */

#importPreviewModal .modal-content {
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #1a2236;
  color: #f5f7fa;
  border: none;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

#importPreviewModal .modal-header, 
#importPreviewModal .modal-footer {
  border: none;
  background: #202a44;
  border-radius: 18px 18px 0 0;
}

#importPreviewModal .modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #00b2e7;
}

#previewTable {
  border-radius: 12px;
  overflow: hidden;
  background: #232c43;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

#previewTable th {
  background: #22305a;
  color: #00b2e7;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 2px solid #00b2e7;
  padding: 0.75rem 0.5rem;
}

#previewTable td {
  background: #232c43;
  color: #f5f7fa;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #2e3957;
  font-size: 1rem;
}

#previewTable tr:nth-child(even) td {
  background: #202a44;
}

#previewTable tr:hover td {
  background: #26345a;
  transition: background 0.2s;
}

.alert-success, .alert-warning {
  border-radius: 10px;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, box-shadow 0.2s;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.btn-success {
  background: linear-gradient(90deg, #00b2e7 0%, #00e6c3 100%);
  color: #fff;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(90deg, #00e6c3 0%, #00b2e7 100%);
  box-shadow: 0 4px 16px rgba(0,178,231,0.18);
}

.btn-secondary {
  background: #2e3957;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background: #22305a;
}

/* Card and section backgrounds in modal */
#importPreviewModal .card {
  background: #232c43;
  border-radius: 14px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#importPreviewModal .card-header {
  background: #22305a;
  color: #00b2e7;
  border-radius: 14px 14px 0 0;
  font-weight: 600;
  font-size: 1.08rem;
}

#importPreviewModal .card-body {
  background: #232c43;
  color: #f5f7fa;
  border-radius: 0 0 14px 14px;
}

/* Mapping summary and alert tweaks */
#importPreviewModal .alert-success {
  background: #1e2b4a;
  color: #00e6c3;
  border: 1px solid #00b2e7;
}

#importPreviewModal .alert-warning {
  background: #2e3957;
  color: #ffe066;
  border: 1px solid #ffe066;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  #previewTable th, #previewTable td {
    padding: 0.4rem 0.2rem;
    font-size: 0.95rem;
  }
  #importPreviewModal .modal-content {
    border-radius: 8px;
  }
}

/* Performance optimizations for animations */
@media (prefers-reduced-motion: reduce) {
    .transaction-card::before,
    .transaction-card-header::after,
    .transaction-net-worth::before,
    .asset-item::before,
    .liability-item::before,
    .card-action-btn::before,
    .view-toggle-btn::before {
        animation: none !important;
        transition: none !important;
    }
    
    .transaction-card:hover,
    .asset-item:hover,
    .liability-item:hover,
    .card-action-btn:hover,
    .asset-amount:hover,
    .liability-amount:hover {
        transform: none !important;
    }
}

/* Disable heavy animations on mobile for better performance */
@media (max-width: 768px) {
    .transaction-card-header::after {
        animation: none;
    }
    
    .transaction-net-worth::before {
        animation: none;
    }
    
    .transaction-card::before {
        animation: none;
    }
}