 body {
      background: linear-gradient(#D6D9EA, #D6D9EA);
      font-family: 'Montserrat', sans-serif;
      min-height: 100vh;
    }

    .card-login {
      border-radius: 15px;
      box-shadow: 0 0 20px rgba(0,0,0,0.1);
      overflow: hidden;
      font-size: 14px;
    }

    .card-login .left, .card-login .right {
      padding: 40px;
    }

    .toggle-password {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
    }

    .form-label {
      font-weight: 500;
    }

    .btn-login {
      background-color: #4e3cb4;
      color: white;
      border-radius: 25px;
      font-weight: 500;
    }

    .btn-login:hover {
      background-color: #3c2f9b;
    }

    input[type="email"], input[type="password"] {
      font-size: 13px;
    }

    .referral-input {
      font-size: 13px;
      font-family: 'Montserrat', sans-serif;
    }
     @font-face {
  font-family: 'Arcadia Text';
  src: url('/fonts/arcadia-text.woff2') format('woff2');
}
    body {
      font-family: 'Arcadia Text', system-ui, sans-serif;
      Font being rendered: Arcadia Text 100.0%;
      background-color: #f9f9fb;
       zoom: 90%; 
      margin: 0;
    }

    .sidebar {
      position: fixed;
      height: 100vh;
      width: 216px;
      background: #fff;
      border-right: 1px solid #e6e6e6;
      padding: 18px;
      transition: transform 0.3s ease;
      overflow-y: auto;
      margin-right: 30px;
      /* z-index: 1000; */
    }

    .sidebar h5 {
      font-weight: 600;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .sidebar a {
      display: flex;
      align-items: center;
      padding: 10px 0;
      font-size: 15px;
      color: #333;
      text-decoration: none;
    }

    .sidebar a i {
      margin-right: 10px;
    }

    .sidebar a:hover {
      color: #4e3cb4;
    }

   
    .profile-section {
      margin-top: 40px;
      display: flex;
      align-items: center;
    }

    .profile-section img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      margin-right: 10px;
    }

    .main-content {
      padding: 30px;
      background-color: #f9f9fb;
      flex-grow: 1;
    }

    .menu-toggle {
      display: none;
      background-color: transparent;
      border: none;
      font-size: 24px;
    }

    .custom-navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: nowrap;
      margin-bottom: 20px;
      gap: 10px;
    }

    .profile-section {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0;
      cursor: pointer;
      max-width: 200px;
      margin-top: 0;
      margin-bottom: 30px;
    }

    .profile-section .avatar {
      width: 32px;
      height: 32px;
      background-color: #d4e2f5;
      color: #333;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      font-size: 14px;
    }

    .profile-section .profile-name {
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-size: 12px;
      font-weight: 500;
      color: #333;
    }

    .account-section {
      display: none;
      margin-left: 20px;
      margin-top: 10px;
      transition: all 0.3s ease-in-out;
    }

    .account-section.show {
      display: block;
    }

    .account-section strong {
      display: inline-block;
      width: 150px;
    }

    .account-section span {
      display: inline-block;
    }

    
    .account-section {
      margin-top: 20px;
      font-size: 13px;
    }
    
    .account-section strong {
      display: block;
      font-weight: 600;
      margin-top: 10px;
    }
    
    .account-section span {
      display: block;
      color: #555;
    }
    
    .payment-section {
      display: none;
      margin-left: 20px;
      margin-top: 10px;
      transition: all 0.3s ease-in-out;
    }

    .payment-section.show {
      display: block;
    }

    .payment-section strong {
      display: inline-block;
      width: 150px;
    }
  
    .search-container {
      display: flex;
      align-items: center;
    }

    .button-group button {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @media (min-width: 769px) {
      .main-content {
        margin-left: 30px;
      }

      .input-group.d-none.d-md-flex {
        margin-left: 220px;
 
      }

      .custom-navbar {
        margin-left: 40px;

      }
    }

    @media (max-width: 768px) {
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
      }

      .sidebar.active {
        transform: translateX(0);
      }

      .menu-toggle {
        display: block;
        background: #fff;
        border-radius: 5px;
      }

      .menu-toggle.hidden {
        display: none;
      }

      .main-content {
        padding: 20px;
        margin-top: 60px;
      }

      .custom-navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: -20px;
        gap: 0;
      }

      .search-bar {
        display: none !important;
      }

      #mobileSearchBar.show {
        display: flex !important;
        flex: 1;
        margin-left: 10px;
      }

      .button-group .btn {
        width: 36px;
        height: 36px;
      }

      .button-group i {
        font-size: 16px !important;
      }

      .custom-navbar>div {
        min-width: 0;
      }

      .input-group input {
        min-width: 0;
      }
    }

    /* Dashboard Layout Wrapper */
    .DashboardLayouts-module__dashboardContent_obhjf {
      max-width: 960px;
      margin: 0 auto;
    }

    /* Generic Card Panel */
    .styles-module__panelCard_GgiWB {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      padding: 20px;
    }

    /* Section Labels */
    .styles-module__sectionLabel_D1e4O {
      font-size: 14px;
      font-weight: 600;
      color: #70707d;
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    /* Balance Header */
    .styles-module__balanceHeader_EbYr9 {
      font-size: 28px;
      font-weight: 700;
      color: #333;
    }

    /* Header Row */
    .styles-module__headerRow_YfBlx {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Account Rows */
    .styles-module__accountRow_jL4Kw {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 14px;
      color: #444;
      border-bottom: 1px solid #f0f0f0;
    }

    /* Link Text */
    .styles-module__linkText_LqfCm {
      font-size: 14px;
      color: #395aff;
      text-decoration: none;
      font-weight: 500;
    }

    .styles-module__linkText_LqfCm:hover {
      text-decoration: underline;
    }

    /* Transaction Rows */
    .styles-module__transactionRow_LoCZn {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 14px;
      color: #444;
      border-bottom: 1px solid #f5f5f5;
    }

    /* Money Flow Rows */
    .styles-module__moneyFlowRow_ZRxMo {
      display: flex;
      justify-content: space-between;
      padding: 6px 0;
      font-size: 14px;
      color: #333;
    }
  </style>
  <style>
    .transactions-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      font-family: 'Arcadia Text', 'system-ui', sans-serif;
      font-size: 14px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
      max-width: 100%;
    }

    .transactions-header {
      display: flex;
      align-items: center;
      font-weight: 600;
      margin-bottom: 16px;
    }

    .transactions-header a {
      color: #395aff;
      text-decoration: none;
      font-size: 14px;
    }

    .transactions-header a:hover {
      text-decoration: underline;
    }

    .filter-buttons {
      display: flex;
      gap: 8px;
      margin-bottom: 16px;
    }

    .filter-buttons button {
      border: 1px solid #d3d3d3;
      background: white;
      border-radius: 8px;
      padding: 6px 12px;
      font-size: 13px;
      cursor: pointer;
    }

    .filter-buttons .active {
      background-color: #eef0ff;
      border-color: #c2c8ff;
      color: #4e3cb4;
    }

    .transactions-table {
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    .transactions-row {
      display: grid;
      grid-template-columns: 1fr 2.5fr 1.5fr 2fr 2fr;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
    }

    .transactions-row.header {
      font-weight: 600;
      color: #70707d;
      text-transform: uppercase;
      font-size: 12px;
    }

    .amount.in {
      color: #12813b;
      font-weight: 600;
    }

    .amount.out {
      color: #d21b1b;
      font-weight: 600;
    }

    .entity {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .icon-circle {
      width: 28px;
      height: 28px;
      background-color: #e3e8f9;
      border-radius: 50%;
      color: #1d2c4c;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .icon-bank {
      width: 28px;
      height: 28px;
      background: url('https://img.icons8.com/ios-filled/50/bank.png') no-repeat center;
      background-size: contain;
    }

    .icon-logo {
      width: 28px;
      height: 28px;
      background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Mercury_logo_2020.svg/512px-Mercury_logo_2020.svg.png') no-repeat center;
      background-size: contain;
    }
    .card {
      background-color: #fff;
      border-radius: 14px;
      padding: 20px;
      border: none;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .card h6, .card .text-muted-small {
      color: #555;
      font-size: 0.85rem;
    }
    .balance-amount {
      font-size: 2.2rem;
      font-weight: 600;
      color: #000;
    }
    .balance-metrics {
      font-size: 0.9rem;
    }
    .account-icon {
      width: 36px;
      height: 36px;
      background-color: #f0f0f0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      color: #000;
    }
    .view-all-btn {
      width: 36px;
      height: 36px;
      background-color: #f0f0f0;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      font-weight: bold;
      font-size: 14px;
      border: none;
    }
    .btn-toggle-chart {
      background-color: #f0f0f0;
      border: none;
      border-radius: 8px;
      padding: 6px 10px;
      color: #000;
    }
    /* Ensure the pagination pills wrap nicely and don’t overlap */
.pagination {
    display: flex;       /* Bootstrap already does this, but just to be sure */
    flex-wrap: wrap;     /* <-- key line to avoid overlap */
    gap: .25rem;         /* space between buttons */
    margin-bottom: 0;    /* tidy */
}

.page-item .page-link {
    min-width: 2.25rem;  /* keep buttons wide enough for double-digits */
    text-align: center;
    line-height: 1.25rem;
}

/* If your container is tight, allow horizontal scroll instead of overlap */
.pagination-wrap {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap; /* keeps the nav from breaking mid-button if scrolled */
    padding-bottom: .25rem; /* tiny space so scrollbar doesn't cover pills on some OSes */
}