html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.profile-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.user-profile img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Make select fields uniform with text inputs */
.brank-input .input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

    /* Select field */
    .brank-input .input-with-icon .form-select {
        width: 100%;
        height: 52px;
        min-height: 52px;
        padding: 0 45px 0 50px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background-color: #fff;
        font-size: 10px !important;
        line-height: 52px;
        box-sizing: border-box;
    }

    /* Keep icon inside the field and beside the select */
    .brank-input .input-with-icon .input-icon {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    /* Select arrow */
    .brank-input .input-with-icon .form-select {
        appearance: auto;
        -webkit-appearance: auto;
    }

/* Make text inputs and selects the same height */
.brank-input .form-control,
.brank-input .form-select {
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.brank-input .input-with-icon .form-select option {
    font-size: 10px !important;
}

/* Textarea should not be forced to 52px */
.brank-input textarea.form-control {
    height: auto;
    min-height: 90px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}




/* =========================================================
   MODERN BRANK DASHBOARD
   CSS ONLY - DOES NOT CHANGE DASHBOARD FUNCTIONALITY
   ========================================================= */

.dashboard-section {
    background: #f5f7fa !important;
    min-height: 100vh;
    color: #27364b;
}

    .dashboard-section .overlay {
        padding-top: 35px !important;
        padding-bottom: 50px;
    }

    /* ---------------------------------------------------------
   MAIN DASHBOARD GRID
   --------------------------------------------------------- */

    .dashboard-section .container-fruid > .row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

        /*
   We flatten the existing Bootstrap wrappers visually.
   Your HTML and Razor structure remain unchanged.
*/
        .dashboard-section .container-fruid > .row > .col-xl-8,
        .dashboard-section .container-fruid > .row > .col-xl-4,
        .dashboard-section .container-fruid > .row > .col-xl-8 > .section-content {
            display: contents !important;
        }

    /* Account section */
    .dashboard-section .acc-details {
        grid-column: 1;
        grid-row: 1;
    }

    /* Transaction section */
    .dashboard-section .transactions-area {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    /* Right-side widgets become lower left content */
    .dashboard-section .side-items {
        grid-column: 1;
        grid-row: 2;
    }


    /* ---------------------------------------------------------
   ACCOUNT CARD
   --------------------------------------------------------- */

    .dashboard-section .acc-details {
        background: #ffffff;
        border-radius: 10px;
        padding: 0;
        box-shadow: 0 2px 12px rgba(20, 35, 60, 0.06);
        border: 1px solid #edf0f4;
        overflow: hidden;
    }

        /* Top account area */

        .dashboard-section .acc-details .top-area {
            padding: 26px 28px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            border-bottom: 1px solid #edf0f4;
        }

        /* Welcome text */

        .dashboard-section .acc-details .left-side h5:first-child {
            color: #243b64;
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 12px;
        }

        /* Balance */

        .dashboard-section .acc-details .left-side h2 {
            color: #263c62;
            font-size: 34px;
            font-weight: 500;
            letter-spacing: -0.5px;
            margin-bottom: 15px;
        }

        /* Last transaction */

        .dashboard-section .acc-details .receive {
            color: #8a94a6;
            font-size: 14px;
            margin: 0;
        }

            .dashboard-section .acc-details .receive span {
                font-size: 14px;
            }


        /* ---------------------------------------------------------
   LEDGER BALANCE
   --------------------------------------------------------- */

        .dashboard-section .acc-details .right-side {
            text-align: right;
        }

        .dashboard-section .acc-details .right-bottom h4 {
            color: #263c62;
            font-size: 24px;
            font-weight: 500;
            margin-top: 40px;
            margin-bottom: 5px;
        }

        .dashboard-section .acc-details .right-bottom h5 {
            color: #8993a4;
            font-size: 13px;
            font-weight: 400;
        }


    /* ---------------------------------------------------------
   DROPDOWN
   --------------------------------------------------------- */

    .dashboard-section .dropdown-area button {
        border: 0;
        background: transparent;
        padding: 5px;
    }

        .dashboard-section .dropdown-area button img {
            width: 20px;
            height: 20px;
        }

    .dashboard-section .dropdown-menu {
        border: 1px solid #edf0f4;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        padding: 6px;
    }

    .dashboard-section .dropdown-item {
        border-radius: 6px;
        padding: 9px 13px;
        font-size: 14px;
    }

        .dashboard-section .dropdown-item:hover {
            background: #f3f6fa;
        }


    /* ---------------------------------------------------------
   ACCOUNT ACTIONS
   --------------------------------------------------------- */

    .dashboard-section .acc-details .bottom-area {
        padding: 18px 28px;
        background: #ffffff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

        .dashboard-section .acc-details .bottom-area .left-side {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .dashboard-section .acc-details .bottom-area .cmn-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }

            .dashboard-section .acc-details .bottom-area .cmn-btn:hover {
                transform: translateY(-1px);
            }


    /* ---------------------------------------------------------
   TRANSACTION HISTORY CARD
   --------------------------------------------------------- */

    .dashboard-section .transactions-area {
        background: #ffffff;
        border: 1px solid #edf0f4;
        border-radius: 10px;
        box-shadow: 0 2px 12px rgba(20, 35, 60, 0.06);
        padding: 0;
        overflow: hidden;
        min-width: 0;
    }

        .dashboard-section .transactions-area > .section-text {
            padding: 20px 24px;
            margin: 0;
            border-bottom: 1px solid #edf0f4;
        }

            .dashboard-section .transactions-area > .section-text h5 {
                color: #27364b;
                font-size: 20px;
                font-weight: 600;
                margin: 0 0 4px;
            }

            .dashboard-section .transactions-area > .section-text p {
                color: #9aa3b1;
                font-size: 13px;
                margin: 0;
            }


        /* Remove Bootstrap container restrictions */

        .dashboard-section .transactions-area .container {
            width: 100%;
            max-width: none;
            padding: 0;
            margin: 0;
        }

        .dashboard-section .transactions-area .row {
            margin: 0;
        }

        .dashboard-section .transactions-area .col-12 {
            padding: 0;
        }


        /* Transaction card */

        .dashboard-section .transactions-area .card {
            border: 0 !important;
            box-shadow: none !important;
            border-radius: 0;
        }

        .dashboard-section .transactions-area .card-header {
            display: none;
        }

        .dashboard-section .transactions-area .card-body {
            padding: 0;
        }


        /* ---------------------------------------------------------
   RESPONSIVE TRANSACTION TABLE
   --------------------------------------------------------- */

        .dashboard-section .transactions-area table {
            margin: 0 !important;
            border-collapse: collapse;
        }

            .dashboard-section .transactions-area table thead th {
                background: #f8f9fb;
                color: #687386;
                border-bottom: 1px solid #edf0f4;
                border-top: 0;
                padding: 13px 12px;
                font-size: 12px;
                font-weight: 600;
                white-space: nowrap;
            }

            .dashboard-section .transactions-area table tbody td {
                color: #596579;
                border-color: #f0f2f5;
                padding: 14px 12px;
                font-size: 13px;
                vertical-align: middle;
            }

            .dashboard-section .transactions-area table tbody tr {
                transition: background 0.2s ease;
            }

                .dashboard-section .transactions-area table tbody tr:hover {
                    background: #f8fafc;
                }


        /* Account number */

        .dashboard-section .transactions-area .def-col {
            color: #34445d !important;
            font-weight: 500;
        }


        /* Amount */

        .dashboard-section .transactions-area .def-color {
            color: #34445d;
            font-weight: 500;
        }


        /* Status badge */

        .dashboard-section .transactions-area .badge {
            padding: 5px 9px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }


        /* View button */

        .dashboard-section .transactions-area .cmn-btn.btn-sm {
            min-height: 30px;
            padding: 5px 12px;
            border-radius: 5px;
            font-size: 11px;
        }


    /* ---------------------------------------------------------
   SIDE ITEMS
   --------------------------------------------------------- */

    .dashboard-section .side-items {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        min-width: 0;
    }


        /* Individual cards */

        .dashboard-section .side-items .single-item {
            background: #ffffff;
            border: 1px solid #edf0f4;
            border-radius: 10px;
            box-shadow: 0 2px 12px rgba(20, 35, 60, 0.05);
            padding: 20px;
        }


            /* First card can occupy full width */

            .dashboard-section .side-items .single-item:first-child {
                grid-column: 1 / -1;
            }


        /* Section titles */

        .dashboard-section .side-items .section-text h6 {
            color: #27364b;
            font-size: 16px;
            font-weight: 600;
            margin: 0;
        }


        /* Select */

        .dashboard-section .side-items select {
            border: 1px solid #e5e9ef;
            border-radius: 6px;
            padding: 7px 12px;
            color: #667085;
            background: #ffffff;
            font-size: 13px;
        }


        /* ---------------------------------------------------------
   LINKED PAYMENT CARDS
   --------------------------------------------------------- */

        .dashboard-section .side-items .single-card {
            margin-bottom: 15px;
        }

            .dashboard-section .side-items .single-card button {
                border: 0;
                background: transparent;
                padding: 0;
                border-radius: 8px;
                overflow: hidden;
                transition: transform 0.2s ease;
            }

                .dashboard-section .side-items .single-card button:hover {
                    transform: translateY(-2px);
                }

            .dashboard-section .side-items .single-card img {
                display: block;
                width: 100%;
                border-radius: 8px;
            }


    /* ---------------------------------------------------------
   ANALYTICS
   --------------------------------------------------------- */

    .dashboard-section #chart {
        min-height: 250px;
        margin-top: 15px;
    }


/* ---------------------------------------------------------
   GENERAL RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199px) {

    .dashboard-section .container-fruid > .row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
    }

    .dashboard-section .acc-details .top-area {
        padding: 22px;
    }

    .dashboard-section .acc-details .left-side h2 {
        font-size: 30px;
    }

    .dashboard-section .transactions-area table thead th,
    .dashboard-section .transactions-area table tbody td {
        padding: 11px 8px;
    }
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 991px) {

    .dashboard-section .container-fruid > .row {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-section .acc-details {
        grid-column: 1;
        grid-row: auto;
    }

    .dashboard-section .transactions-area {
        grid-column: 1;
        grid-row: auto;
    }

    .dashboard-section .side-items {
        grid-column: 1;
        grid-row: auto;
    }

    .dashboard-section .side-items {
        grid-template-columns: 1fr 1fr;
    }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .dashboard-section .overlay {
        padding-top: 20px !important;
        padding-bottom: 30px;
    }

    .dashboard-section .container-fruid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-section .acc-details .top-area {
        display: block;
        padding: 20px;
    }

    .dashboard-section .acc-details .left-side h2 {
        font-size: 28px;
    }

    .dashboard-section .acc-details .right-side {
        text-align: left;
        margin-top: 20px;
    }

    .dashboard-section .acc-details .right-bottom h4 {
        margin-top: 15px;
    }

    .dashboard-section .acc-details .bottom-area {
        display: block;
        padding: 15px 20px;
    }

        .dashboard-section .acc-details .bottom-area .left-side {
            display: grid;
            grid-template-columns: 1fr;
            width: 100%;
        }

        .dashboard-section .acc-details .bottom-area .cmn-btn {
            width: 100%;
        }

        .dashboard-section .acc-details .bottom-area > .right-side {
            display: none;
        }

    .dashboard-section .transactions-area > .section-text {
        padding: 18px;
    }

        .dashboard-section .transactions-area > .section-text h5 {
            font-size: 18px;
        }

    /* Horizontal scroll for transaction table */

    .dashboard-section .transactions-area .card-body {
        overflow-x: auto;
    }

    .dashboard-section .transactions-area table {
        min-width: 700px;
    }

    .dashboard-section .side-items {
        grid-template-columns: 1fr;
        gap: 18px;
    }

        .dashboard-section .side-items .single-item:first-child {
            grid-column: auto;
        }

        .dashboard-section .side-items .single-item {
            padding: 17px;
        }
}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .dashboard-section .acc-details .top-area {
        padding: 17px;
    }

    .dashboard-section .acc-details .left-side h2 {
        font-size: 25px;
    }

    .dashboard-section .acc-details .receive {
        font-size: 12px;
    }

    .dashboard-section .transactions-area > .section-text {
        padding: 16px;
    }

    .dashboard-section .side-items .single-item {
        padding: 15px;
    }
}

/* ============================================================
       BRANK DASHBOARD - BASE
       ============================================================ */
.brank-dashboard {
    background: #f5f7f9;
    min-height: 100vh;
    /*
         * LEFT NAVIGATION SPACE
         * Your dashboard sidebar is approximately 250px wide.
         */
    margin-left: 250px;
    padding: 22px 12px 50px;
    font-family: Arial, Helvetica, sans-serif;
    color: #263b60;
    box-sizing: border-box;
    width: calc(100% - 250px);
}


.brank-dashboard *,
.brank-dashboard *::before,
.brank-dashboard *::after {
    box-sizing: border-box;
}


.brank-dashboard-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}


/* ============================================================
       MAIN TWO-COLUMN LAYOUT
       ============================================================ */

.brank-grid {
    display: grid;
    /*
         * Left content + transaction history
         */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    width: 100%;
}


/* ============================================================
       LEFT SIDE
       ============================================================ */

.brank-left {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}


/* ============================================================
       WELCOME BOX
       ============================================================ */

.welcome-box {
    background: #ffffff;
    border: 1px solid #1d427d;
    border-radius: 4px;
    padding: 17px 20px;
    min-height: 51px;
    display: flex;
    align-items: center;
    width: 100%;
}


    .welcome-box h6 {
        margin: 0;
        color: #1e4b91;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
    }


        .welcome-box h6 strong {
            font-weight: 500;
        }


/* ============================================================
       ACCOUNT BALANCE CARD
       ============================================================ */

.balance-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 18px 16px 20px;
    box-shadow: 0 2px 8px rgba(27, 48, 78, 0.06);
    width: 100%;
}


.balance-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}


.balance-left {
    flex: 1;
    min-width: 0;
}


.balance-right {
    text-align: right;
    flex-shrink: 0;
    padding-top: 0;
}


.balance-title {
    font-size: 17px;
    font-weight: 400;
    color: #243d66;
    margin: 0 0 8px;
}


.balance-amount {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: #263e65;
    margin: 0 0 12px;
    line-height: 1.2;
}


.account-number {
    color: #8792a3;
    font-size: 13px;
    letter-spacing: .3px;
}


.account-type {
    color: #ff4057;
    font-size: 13px;
    text-transform: uppercase;
    margin-top: 5px;
}


.balance-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
}


/* ============================================================
       ACTIVE BADGE
       ============================================================ */

.active-badge {
    background: #49e8a9;
    color: #ffffff;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.2;
}


/* ============================================================
       ADD ACCOUNT BUTTON
       ============================================================ */

.add-account-btn {
    background: #24487d;
    color: #ffffff !important;
    border: 0;
    border-radius: 5px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}


    .add-account-btn:hover {
        background: #193964;
        color: #ffffff !important;
    }


/* ============================================================
       LOAN CARD
       ============================================================ */

.loan-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 19px 16px;
    box-shadow: 0 2px 8px rgba(27, 48, 78, 0.06);
    width: 100%;
}


.loan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.loan-title {
    font-size: 17px;
    color: #243d66;
    font-weight: 400;
    margin: 0;
}


.loan-button {
    background: #24487d;
    color: #ffffff !important;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}


    .loan-button:hover {
        background: #193964;
        color: #ffffff !important;
    }


.loan-amount {
    color: #263e65;
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 8px;
    line-height: 1.2;
}


.loan-status {
    color: #7f8a9a;
    font-size: 13px;
    margin: 0;
}


/* ============================================================
       MARKET TICKER
       ============================================================ */

.market-card {
    background: #ffffff;
    border: 1px solid #e5e8ed;
    border-radius: 3px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 70px;
    width: 100%;
}


.market-item {
    padding: 12px 10px;
    border-right: 1px solid #e8ebef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}


    .market-item:last-child {
        border-right: none;
    }


.market-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    color: #29384f;
    font-size: 11px;
    white-space: nowrap;
}


.market-name {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}


.market-icon {
    font-size: 10px;
    flex-shrink: 0;
}


.market-value {
    color: #26384f;
    font-size: 11px;
    flex-shrink: 0;
}


.market-change {
    margin-top: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}


    .market-change.negative {
        color: #ff334d;
    }


    .market-change.positive {
        color: #00a98f;
    }


    .market-change small {
        font-size: 9px;
    }


/* ============================================================
       TRANSACTION HISTORY CARD
       ============================================================ */

.transaction-card {
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(27, 48, 78, 0.06);
    overflow: hidden;
    min-height: 600px;
    width: 100%;
    min-width: 0;
}


.transaction-header {
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


    .transaction-header h5 {
        color: #3f4652;
        font-size: 19px;
        font-weight: 400;
        margin: 0;
    }


.transaction-menu {
    color: #8c949e;
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1;
}


/* ============================================================
       TRANSACTION LIST
       ============================================================ */

.transaction-list {
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
}


.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 15px;
    border-bottom: 1px solid #f0f2f4;
    min-height: 73px;
    width: 100%;
}


    .transaction-item:last-child {
        border-bottom: none;
    }


/* ============================================================
       TRANSACTION ICON
       ============================================================ */

.transaction-icon {
    width: 41px;
    height: 41px;
    min-width: 41px;
    border-radius: 50%;
    background: #24477f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}


    .transaction-icon.debit {
        background: #9563f2;
    }


/* ============================================================
       TRANSACTION INFORMATION
       ============================================================ */

.transaction-content {
    flex: 1;
    min-width: 0;
}


.transaction-account {
    color: #555b66;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}


.transaction-date {
    color: #9299a1;
    font-size: 12px;
}


.transaction-amount {
    font-size: 14px;
    white-space: nowrap;
    font-weight: 400;
    flex-shrink: 0;
}


    .transaction-amount.credit {
        color: #00a98f;
    }


    .transaction-amount.debit {
        color: #ff303f;
    }


/* ============================================================
       NO TRANSACTIONS
       ============================================================ */

.transaction-empty {
    padding: 50px 20px;
    text-align: center;
    color: #8993a2;
    font-size: 14px;
}


/* ============================================================
       TABLET
       ============================================================ */

@media (max-width: 1199px) {

    .brank-dashboard {
        padding-left: 15px;
        padding-right: 15px;
    }


    .brank-grid {
        gap: 20px;
    }


    .market-top {
        display: block;
    }


    .market-value {
        display: block;
        margin-top: 3px;
    }
}


/* ============================================================
       TABLET / COLLAPSED SIDEBAR
       ============================================================ */

@media (max-width: 991px) {

    /*
         * Sidebar should no longer take space when collapsed.
         */
    .brank-dashboard {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px 40px;
    }


    /*
         * Stack dashboard columns.
         */
    .brank-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .transaction-card {
        min-height: auto;
    }


    .market-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    .market-top {
        display: flex;
    }


    .market-value {
        display: inline;
        margin-top: 0;
    }
}


/* ============================================================
       MOBILE
       ============================================================ */

@media (max-width: 767px) {

    .brank-dashboard {
        padding: 15px 10px 35px;
    }


    .brank-left {
        gap: 15px;
    }


    .brank-grid {
        gap: 15px;
    }


    .welcome-box {
        padding: 14px 15px;
        min-height: auto;
    }


        .welcome-box h6 {
            font-size: 12px;
        }


    .balance-card {
        padding: 17px 14px;
    }


    .balance-top {
        gap: 10px;
    }


    .balance-amount {
        font-size: 26px;
    }


    .balance-bottom {
        display: block;
    }


    .balance-right {
        text-align: right;
        padding-top: 0;
    }


    .account-number {
        font-size: 12px;
    }


    .account-type {
        font-size: 12px;
        margin-top: 5px;
    }


    .loan-card {
        padding: 17px 14px;
    }


    .loan-amount {
        font-size: 26px;
    }


    .market-card {
        grid-template-columns: 1fr;
    }


    .market-item {
        border-right: none;
        border-bottom: 1px solid #e8ebef;
        padding: 12px;
    }


        .market-item:last-child {
            border-bottom: none;
        }


    .market-top {
        display: flex;
    }


    .market-value {
        display: inline;
    }


    .transaction-header {
        padding: 16px;
    }


        .transaction-header h5 {
            font-size: 17px;
        }


    .transaction-item {
        padding: 13px 12px;
        gap: 10px;
    }


    .transaction-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }


    .transaction-account {
        font-size: 12px;
    }


    .transaction-date {
        font-size: 11px;
    }


    .transaction-amount {
        font-size: 12px;
    }
}


/* ============================================================
       VERY SMALL PHONES
       ============================================================ */

@media (max-width: 400px) {

    .brank-dashboard {
        padding-left: 8px;
        padding-right: 8px;
    }


    .balance-top {
        display: block;
    }


    .balance-right {
        margin-top: 12px;
        text-align: left;
    }


        .balance-right br {
            display: none;
        }


    .add-account-btn {
        margin-left: 5px;
    }


    .loan-header {
        align-items: flex-start;
    }


    .loan-button {
        font-size: 10px;
        padding: 5px 7px;
    }


    .transaction-item {
        gap: 8px;
    }


    .transaction-icon {
        width: 33px;
        height: 33px;
        min-width: 33px;
    }


    .transaction-amount {
        font-size: 11px;
    }
}



/* =========================================
           BRANK SEND MONEY
           ========================================= */

.brank-send-money {
    min-height: 100vh;
    background: #f5f7fa;
}


    .brank-send-money .overlay {
        padding-top: 45px !important;
    }


    .brank-send-money .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }


/* Header */

.send-money-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}


.send-money-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: #eef3ff;
    color: #3157a6;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}


.send-money-header h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #263b60;
}


.send-money-header p {
    margin: 6px 0 0;
    color: #7b879b;
    font-size: 14px;
}


/* Main Cards */

.brank-transfer-card {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(31, 45, 61, 0.04);
}


/* Recipient */

.choose-recipient {
    padding: 24px;
    margin-bottom: 22px;
}


    .choose-recipient .step-area {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 20px;
    }


.section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    color: #3157a6;
    font-size: 20px;
}


.section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #8792a5;
    margin-bottom: 3px;
}


.choose-recipient h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #263b60;
}


.choose-recipient p {
    margin: 4px 0 0;
    color: #8b95a7;
    font-size: 13px;
}


.recipient-list {
    display: flex;
    gap: 14px;
}


.recipient-option {
    flex: 1;
    min-height: 70px;
    border: 1px solid #e6eaf0;
    background: #fff;
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #263b60;
    text-decoration: none;
    transition: all .2s ease;
}


    .recipient-option:hover {
        border-color: #3157a6;
        transform: translateY(-1px);
        box-shadow: 0 5px 18px rgba(49, 87, 166, .08);
        color: #3157a6;
    }


    .recipient-option .icon-area {
        width: 40px;
        height: 40px;
        border-radius: 9px;
        background: #f4f6fa;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
    }


    .recipient-option > span:nth-child(2) {
        font-size: 14px;
        font-weight: 600;
    }


.recipient-arrow {
    margin-left: auto;
    color: #a1aaba;
}


/* Transfer Form */

.transfer-form-card {
    padding: 28px;
}


.transfer-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 22px;
    margin-bottom: 10px;
    border-bottom: 1px solid #edf0f4;
}


    .transfer-form-header h5 {
        margin: 0;
        font-size: 20px;
        font-weight: 700;
        color: #263b60;
    }


    .transfer-form-header p {
        margin: 6px 0 0;
        color: #8a95a8;
        font-size: 13px;
    }


.transfer-secure-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f8f3;
    color: #2e8b57;
    font-size: 21px;
}


/* Inputs */

.brank-input {
    margin-bottom: 18px;
}


    .brank-input label {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #35445f;
    }


.input-with-icon {
    position: relative;
}


    .input-with-icon .input-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8792a5;
        z-index: 2;
        pointer-events: none;
    }


    .input-with-icon .textarea-icon {
        top: 20px;
        transform: none;
    }


.brank-input input,
.brank-input select,
.brank-input textarea {
    width: 100%;
    border: 1px solid #e0e5ec;
    border-radius: 9px;
    background: #fbfcfd;
    color: #263b60;
    font-size: 14px;
    outline: none;
    transition: all .2s ease;
}


.brank-input input,
.brank-input select {
    height: 50px;
    padding: 0 15px 0 44px;
}


.brank-input textarea {
    min-height: 90px;
    padding: 14px 15px 14px 44px;
    resize: vertical;
}


    .brank-input input:focus,
    .brank-input select:focus,
    .brank-input textarea:focus {
        border-color: #3157a6;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(49, 87, 166, .08);
    }


    .brank-input input::placeholder,
    .brank-input textarea::placeholder {
        color: #a6afbd;
    }


/* Security Notice */

.transfer-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: #f6f8fc;
    border: 1px solid #e8edf4;
    border-radius: 10px;
    padding: 15px;
    margin: 3px 0 20px;
}


.security-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    background: #eaf0ff;
    color: #3157a6;
    display: flex;
    align-items: center;
    justify-content: center;
}


.transfer-security-notice strong {
    display: block;
    color: #35445f;
    font-size: 13px;
    margin-bottom: 3px;
}


.transfer-security-notice p {
    margin: 0;
    color: #8a95a8;
    font-size: 12px;
    line-height: 1.6;
}


/* Proceed Button */

.transfer-proceed-btn {
    height: 54px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
}


    .transfer-proceed-btn i {
        font-size: 17px;
    }


/* Information Card */

.transfer-info-card {
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 25px;
    margin-left: 5px;
    box-shadow: 0 5px 25px rgba(31, 45, 61, 0.04);
}


.transfer-info-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
    color: #3157a6;
    border-radius: 11px;
    font-size: 19px;
    margin-bottom: 15px;
}


.transfer-info-card h5 {
    color: #263b60;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 7px;
}


.transfer-info-card > p {
    color: #8a95a8;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}


.transfer-info-item {
    display: flex;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #edf0f4;
}


    .transfer-info-item > span {
        color: #3a9b68;
        font-size: 16px;
    }


    .transfer-info-item strong {
        display: block;
        color: #35445f;
        font-size: 12px;
        margin-bottom: 3px;
    }


    .transfer-info-item small {
        display: block;
        color: #919bad;
        font-size: 11px;
        line-height: 1.5;
    }


/* =========================================
           RESPONSIVE
           ========================================= */

@media (max-width: 1199px) {
    .transfer-info-card {
        margin-left: 0;
        margin-top: 20px;
    }
}


@media (max-width: 767px) {
    .brank-send-money .overlay {
        padding-top: 25px !important;
    }


    .send-money-header h4 {
        font-size: 23px;
    }


    .choose-recipient {
        padding: 18px;
    }


    .recipient-list {
        flex-direction: column;
    }


    .transfer-form-card {
        padding: 20px 16px;
    }


    .transfer-form-header {
        gap: 15px;
    }


        .transfer-form-header h5 {
            font-size: 18px;
        }


    .brank-input {
        margin-bottom: 15px;
    }


    .transfer-info-card {
        padding: 20px;
    }
}


@media (max-width: 575px) {
    .brank-send-money .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }


    .send-money-header {
        margin-bottom: 20px;
    }


        .send-money-header h4 {
            font-size: 21px;
        }


        .send-money-header p {
            font-size: 12px;
        }


    .choose-recipient .step-area {
        align-items: flex-start;
    }


    .section-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }


    .transfer-secure-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }


    .transfer-security-notice {
        padding: 12px;
    }
}

.dashboard-stat-card {
    border-radius: 10px;
    min-height: 105px;
    transition: all 0.2s ease;
}

    .dashboard-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.10) !important;
    }

.stat-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 14px;
}

.balance-icon, .transaction-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
    font-size: 16px;
}

#accountsTable thead th {
    color: #495057;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
}

#accountsTable tbody td {
    padding-top: 9px;
    padding-bottom: 9px;
    border-color: #f0f0f0;
    font-size: 12px;
    white-space: nowrap;
}

#accountsTable tbody tr {
    transition: background-color 0.15s ease;
}

.badge {
    font-size: 10px;
    font-weight: 600;
}

.card {
    border-radius: 10px;
}

.cmn-btn {
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.marg {
    margin-left: 250px;
    width: calc(100% - 250px);
}