:root {
    --green: #087c43;
    --green-dark: #055d32;
    --green-deep: #033d21;

    --red: #e21d25;
    --orange: #f58220;
    --yellow: #f4c526;

    --cream: #f5f3ec;
    --cream-dark: #ebe8df;

    --white: #ffffff;

    --ink: #171d19;
    --muted: #68716b;

    --border: #dfe3de;
    --border-dark: #cfd5cf;

    --shadow-sm:
        0 6px 18px rgba(23, 29, 25, .05);

    --shadow-md:
        0 14px 32px rgba(23, 29, 25, .07);

    --shadow-lg:
        0 22px 48px rgba(23, 29, 25, .09);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    min-height: 100%;

    scroll-behavior: smooth;
}


body {
    min-height: 100vh;
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--ink);

    background:
        linear-gradient(
            180deg,
            #f7f5ef 0%,
            var(--cream) 100%
        );

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


button,
input {
    font: inherit;
}


button {
    -webkit-tap-highlight-color: transparent;
}


button:focus {
    outline: none;
}


img {
    max-width: 100%;
}


.hidden {
    display: none !important;
}


/* =========================================================
   SPLASH
========================================================= */

/* =========================================================
   SPLASH SCREEN
========================================================= */

.splash-screen {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: grid;

    place-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--green-deep) 0%,
            var(--green-dark) 58%,
            #064d2b 100%
        );

    color: var(--white);
}


/* =========================================================
   SPLASH BRAND STRIPES
========================================================= */

.splash-decoration {
    position: absolute;

    top: -12%;
    right: -3%;

    width: 38vw;
    min-width: 280px;
    max-width: 520px;

    height: 124%;

    transform:
        rotate(
            8deg
        );

    pointer-events: none;
}


/* GREEN STRIPE */

.splash-decoration::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 0;

    width: 24%;

    background:
        linear-gradient(
            180deg,
            rgba(
                8,
                124,
                67,
                .98
            ),
            rgba(
                3,
                61,
                33,
                .92
            )
        );

    box-shadow:
        18px 0 40px
        rgba(
            0,
            0,
            0,
            .08
        );
}


/* ORANGE STRIPE */

.splash-decoration::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 31%;

    width: 18%;

    background:
        linear-gradient(
            180deg,
            var(--orange),
            #db6513
        );

    box-shadow:
        15px 0 30px
        rgba(
            0,
            0,
            0,
            .08
        );
}


/* =========================================================
   THIRD RED STRIPE
========================================================= */

.splash-screen::before {
    content: "";

    position: absolute;

    top: -12%;
    right: 13%;

    width: 7vw;
    min-width: 55px;
    max-width: 95px;

    height: 124%;

    transform:
        rotate(
            8deg
        );

    background:
        linear-gradient(
            180deg,
            var(--red),
            #b9161d
        );

    opacity: .98;

    pointer-events: none;
}


/* =========================================================
   SOFT LIGHT BEHIND LOGO
========================================================= */

.splash-screen::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 620px;
    height: 620px;

    transform:
        translate(
            -50%,
            -50%
        );

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(
                255,
                255,
                255,
                .055
            ) 0%,
            rgba(
                255,
                255,
                255,
                0
            ) 68%
        );

    pointer-events: none;
}


/* =========================================================
   SPLASH CONTENT
========================================================= */

.splash-content {
    position: relative;

    z-index: 5;

    width: min(
        90vw,
        560px
    );

    text-align: center;
}


/* =========================================================
   LOGO
========================================================= */

.seven-logo-text {
    display: flex;

    align-items: baseline;

    justify-content: center;

    gap: 10px;

    line-height: 1;

    filter:
        drop-shadow(
            0 8px 20px
            rgba(
                0,
                0,
                0,
                .12
            )
        );
}


.seven-number {
    font-size:
        clamp(
            64px,
            10vw,
            104px
        );

    font-weight: 900;

    letter-spacing: -7px;

    color:
        var(--yellow);
}


.seven-word {
    font-size:
        clamp(
            35px,
            6vw,
            64px
        );

    font-weight: 900;

    letter-spacing: -3px;

    color:
        var(--white);
}


/* =========================================================
   SUBTITLE
========================================================= */

.splash-title {
    margin-top: 18px;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;

    text-shadow:
        0 2px 10px
        rgba(
            0,
            0,
            0,
            .14
        );
}


.splash-demo {
    margin-top: 8px;

    color:
        rgba(
            255,
            255,
            255,
            .62
        );

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.2px;
}


/* =========================================================
   LOADING BAR
========================================================= */

.splash-loading {
    width: 180px;
    height: 3px;

    margin:
        34px auto 0;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .16
        );
}


.splash-loading div {
    width: 45%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--yellow),
            var(--orange),
            var(--red)
        );

    animation:
        splashLoad
        1.2s
        ease-in-out
        infinite;
}


@keyframes splashLoad {

    0% {
        transform:
            translateX(
                -120%
            );
    }

    100% {
        transform:
            translateX(
                340%
            );
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .splash-decoration {
        right: -18%;

        width: 58vw;

        transform:
            rotate(
                7deg
            );

        opacity: .8;
    }


    .splash-screen::before {
        right: 5%;

        width: 10vw;

        min-width: 42px;
    }


    .splash-content {
        width: 92vw;
    }


    .seven-logo-text {
        gap: 7px;
    }


    .seven-number {
        letter-spacing: -5px;
    }


    .seven-word {
        letter-spacing: -2px;
    }

}


/* =========================================================
   APP SHELL
========================================================= */

.app {
    min-height: 100vh;
}


/* =========================================================
   APP HEADER
========================================================= */

.app-header {
    position: relative;

    z-index: 20;

    min-height: 76px;

    display: flex;
    align-items: center;

    padding:
        0 clamp(
            20px,
            4vw,
            64px
        );

    background:
        var(--green-deep);

    color:
        var(--white);

    overflow: hidden;
}


/* =========================================================
   NAVBAR DECORATIVE STRIPES
========================================================= */

.app-header::before {
    content: "";

    position: absolute;

    top: -35%;
    right: 7%;

    width: 185px;
    height: 170%;

    transform:
        rotate(8deg);

    background:
        linear-gradient(
            90deg,

            transparent 0 10%,

            rgba(
                8,
                124,
                67,
                .98
            ) 10% 25%,

            transparent 25% 34%,

            var(--orange) 34% 47%,

            transparent 47% 56%,

            var(--red) 56% 68%,

            transparent 68% 100%
        );

    opacity: .95;

    pointer-events: none;
}


/* =========================================================
   BOTTOM BRAND STRIPE
========================================================= */

.app-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--green) 0%,
            var(--green) 58%,
            var(--yellow) 58%,
            var(--yellow) 71%,
            var(--orange) 71%,
            var(--orange) 84%,
            var(--red) 84%,
            var(--red) 100%
        );

    pointer-events: none;
}


/* =========================================================
   HEADER CONTENT
========================================================= */

.brand-area {
    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 12px;
}


.mini-logo {
    display: grid;

    place-items: center;

    width: 38px;
    height: 38px;

    border-radius: 8px;

    background:
        var(--yellow);

    color:
        var(--green-deep);

    font-size: 21px;

    font-weight: 900;

    line-height: 1;
}


.brand-copy {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.brand-copy strong {
    font-size: 16px;

    font-weight: 900;

    letter-spacing: -.4px;
}


.brand-copy span {
    color:
        rgba(
            255,
            255,
            255,
            .64
        );

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.1px;
}


/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 700px) {

    .app-header {
        min-height: 68px;

        padding:
            0 14px;
    }


    .app-header::before {
        right: -7%;

        width: 150px;

        opacity: .72;
    }


    .mini-logo {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }


    .brand-copy strong {
        font-size: 14px;
    }


    .brand-copy span {
        font-size: 8px;
    }

}


.main-content {
    width: min(
        1240px,
        calc(
            100% - 40px
        )
    );

    margin:
        0 auto;

    padding:
        52px 0 70px;
}


/* =========================================================
   VIEWS
========================================================= */

.view {
    display: none;
}


.view.active {
    display: block;

    animation:
        viewIn .2s ease-out;
}


@keyframes viewIn {

    from {
        opacity: 0;

        transform:
            translateY(6px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   HOME
========================================================= */

.welcome-section {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 36px;
}


.kicker {
    color: var(--green-dark);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.35px;

    text-transform: uppercase;
}


.welcome-section h1 {
    margin:
        10px 0 0;

    max-width: 760px;

    font-size: clamp(
        40px,
        6vw,
        68px
    );

    line-height: .98;

    font-weight: 900;

    letter-spacing: -3.5px;
}


.welcome-section > div:first-child > p {
    margin:
        14px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


.store-tag {
    flex: 0 0 auto;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 2px;

    padding:
        10px 0;
}


.store-tag small {
    color: #8a928c;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.store-tag strong {
    color: var(--green-dark);

    font-size: 22px;

    font-weight: 900;
}


/* =========================================================
   SERVICE CARDS
========================================================= */

.service-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 18px;

    margin-bottom: 50px;
}


.service-card {
    position: relative;

    display: block;

    width: 100%;

    min-height: 275px;

    padding: 30px;

    border: 1px solid rgba(
        3,
        61,
        33,
        .12
    );

    border-radius: 20px;

    text-align: left;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    cursor: pointer;

    overflow: hidden;

    box-shadow:
        var(--shadow-md);
}


.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;
}


.service-card::after {
    content: "";

    position: absolute;

    right: -80px;
    bottom: -90px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    opacity: .55;
}


.borrow-card {
    background:
        linear-gradient(
            140deg,
            rgba(
                255,
                255,
                255,
                .96
            ),
            rgba(
                235,
                247,
                239,
                .9
            )
        );
}


.borrow-card::before {
    background:
        var(--green);
}


.borrow-card::after {
    background:
        rgba(
            8,
            124,
            67,
            .07
        );
}


.pay-card {
    background:
        linear-gradient(
            140deg,
            rgba(
                255,
                255,
                255,
                .96
            ),
            rgba(
                255,
                244,
                231,
                .92
            )
        );
}


.pay-card::before {
    background:
        var(--orange);
}


.pay-card::after {
    background:
        rgba(
            245,
            130,
            32,
            .08
        );
}


.service-card-content {
    position: relative;

    z-index: 2;
}


.service-card-content span {
    display: block;

    color: #7d867f;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;
}


.service-card-content h2 {
    margin:
        12px 0 0;

    color: var(--ink);

    font-size: 30px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -1.4px;
}


.service-card-content p {
    max-width: 470px;

    margin:
        14px 0 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.7;
}


.service-card-bottom {
    position: absolute;

    left: 30px;
    right: 30px;
    bottom: 26px;

    z-index: 2;

    color: var(--green-dark);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   SECONDARY HEADINGS
========================================================= */

.secondary-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin:
        0 0 17px;
}


.secondary-heading > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.secondary-heading span {
    color: #858d88;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.1px;
}


.secondary-heading strong {
    color: var(--ink);

    font-size: 17px;

    font-weight: 900;

    letter-spacing: -.3px;
}


.reset-btn,
.small-link {
    border: 0;

    padding: 0;

    background:
        transparent;

    color: var(--green-dark);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .9px;

    cursor: pointer;
}


.reset-btn:focus-visible,
.small-link:focus-visible {
    outline:
        2px solid
        var(--orange);

    outline-offset: 4px;
}


/* =========================================================
   OVERVIEW
========================================================= */

.overview-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 14px;

    margin-bottom: 44px;
}


.overview-card {
    min-height: 124px;

    padding: 22px;

    border:
        1px solid
        rgba(
            3,
            61,
            33,
            .11
        );

    border-radius: 15px;

    background:
        rgba(
            255,
            255,
            255,
            .82
        );

    box-shadow:
        var(--shadow-sm);
}


.overview-card.orange-card {
    background:
        linear-gradient(
            135deg,
            rgba(
                255,
                255,
                255,
                .88
            ),
            rgba(
                255,
                246,
                235,
                .88
            )
        );
}


.overview-card.red-card {
    background:
        linear-gradient(
            135deg,
            rgba(
                255,
                255,
                255,
                .88
            ),
            rgba(
                255,
                243,
                243,
                .88
            )
        );
}


.overview-card span {
    display: block;

    color: #858d88;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.05px;
}


.overview-card strong,
.overview-card.orange-card strong,
.overview-card.red-card strong {
    display: block;

    margin-top: 11px;

    color: var(--ink) !important;

    font-size: 26px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.7px;
}


/* =========================================================
   QUICK ACCOUNTS
========================================================= */

.accounts-heading {
    margin-bottom: 17px;
}


.quick-accounts {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;
}


.quick-account {
    display: block;

    min-width: 0;

    padding: 17px;

    border:
        1px solid
        var(--border);

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            .84
        );

    text-align: left;

    cursor: pointer;

    box-shadow:
        var(--shadow-sm);
}


.quick-account-id {
    display: block;

    color: var(--green-dark);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.quick-account-name {
    margin-top: 8px;

    overflow: hidden;

    color: var(--ink);

    font-size: 13px;

    font-weight: 900;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.quick-account-balance {
    margin-top: 11px;

    color: var(--ink);

    font-size: 16px;

    font-weight: 900;
}


.quick-account-status {
    display: inline-block;

    margin-top: 9px;

    padding:
        5px 7px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .6px;

    text-transform: uppercase;
}


.quick-account-status.active {
    background:
        rgba(
            8,
            124,
            67,
            .09
        );

    color:
        var(--green-dark);
}


.quick-account-status.paid {
    background:
        rgba(
            8,
            124,
            67,
            .09
        );

    color:
        var(--green-dark);
}


.quick-account-status.overdue {
    background:
        rgba(
            226,
            29,
            37,
            .09
        );

    color:
        #b31d25;
}


.demo-footer {
    margin-top: 28px;

    color: #929a95;

    font-size: 9px;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   BORROW MONEY
========================================================= */

#borrow-view {
    width: 100%;
}


#borrow-view .back-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--green-dark);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .9px;

    cursor: pointer;
}


#borrow-view .back-button:focus-visible {
    outline:
        2px solid
        var(--green);

    outline-offset: 5px;
}


#borrow-view .view-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 34px;
}


#borrow-view .view-heading .kicker {
    margin-bottom: 9px;

    color:
        var(--green-dark);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


#borrow-view .view-heading h1 {
    margin: 0;

    color:
        var(--ink);

    font-size:
        clamp(
            38px,
            5vw,
            58px
        );

    font-weight: 900;

    line-height: .98;

    letter-spacing: -2.8px;
}


#borrow-view .view-heading p {
    max-width: 620px;

    margin-top: 13px;

    color:
        #68716b;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   BORROW STEPPER
========================================================= */

#borrow-view .stepper {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(34px, 70px)
        minmax(0, 1fr)
        minmax(34px, 70px)
        minmax(0, 1fr);

    align-items: center;

    width: 100%;

    max-width: 960px;

    margin:
        0 auto 34px;

    padding:
        14px 18px;

    border:
        1px solid
        rgba(
            3,
            61,
            33,
            .12
        );

    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(
                255,
                255,
                255,
                .92
            ),
            rgba(
                250,
                249,
                244,
                .88
            )
        );

    box-shadow:
        0 10px 28px
        rgba(
            23,
            29,
            25,
            .06
        );
}


#borrow-view .step {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

    padding:
        9px 8px;

    color:
        #8b928d;
}


#borrow-view .step span {
    display: grid;

    place-items: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border:
        1px solid
        #d9ddd9;

    border-radius: 50%;

    background:
        #f3f4f1;

    color:
        #808782;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .4px;
}


#borrow-view .step strong {
    display: block;

    overflow: hidden;

    color: inherit;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .9px;

    text-transform: uppercase;

    text-overflow: ellipsis;

    white-space: nowrap;
}


#borrow-view .step.active {
    color:
        var(--green-dark);
}


#borrow-view .step.active span {
    border-color:
        var(--green);

    background:
        var(--green);

    color:
        #fff;

    box-shadow:
        0 0 0 4px
        rgba(
            8,
            124,
            67,
            .10
        );
}


#borrow-view .step-line {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            #d8ddd8,
            #c8d0c9,
            #d8ddd8
        );
}


#borrow-view[data-borrow-step="2"]
.step-line:first-of-type,
#borrow-view[data-borrow-step="3"]
.step-line {
    background:
        var(--green);
}


#borrow-view[data-borrow-step="3"]
.step-line:first-of-type {
    background:
        var(--green);
}


/* =========================================================
   BORROW STEPS
========================================================= */

#borrow-view .borrow-step {
    display: none;
}


#borrow-view .borrow-step.active {
    display: block;

    animation:
        borrowStepIn
        .2s
        ease-out;
}


@keyframes borrowStepIn {

    from {
        opacity: 0;

        transform:
            translateY(7px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   BORROW PANEL
========================================================= */

#borrow-view .panel {
    width: 100%;

    max-width: 960px;

    margin:
        0 auto;

    padding: 0;

    border:
        1px solid
        rgba(
            3,
            61,
            33,
            .13
        );

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(
                255,
                255,
                255,
                .97
            ),
            rgba(
                247,
                247,
                242,
                .94
            )
        );

    box-shadow:
        0 18px 40px
        rgba(
            23,
            29,
            25,
            .07
        );

    overflow: hidden;
}


#borrow-step-1 .panel,
#borrow-step-2 .panel,
#borrow-step-3 .panel {
    margin-bottom: 20px;
}


#borrow-step-1 .panel::before,
#borrow-step-2 .panel::before,
#borrow-step-3 .panel::before {
    content: "";

    display: block;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--green) 0%,
            var(--green) 62%,
            var(--yellow) 62%,
            var(--yellow) 73%,
            var(--orange) 73%,
            var(--orange) 86%,
            var(--red) 86%,
            var(--red) 100%
        );
}


#borrow-view .panel-heading {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 25px;

    padding:
        28px 30px 24px;

    border-bottom:
        1px solid
        #e5e7e2;

    background:
        linear-gradient(
            90deg,
            rgba(
                8,
                124,
                67,
                .055
            ),
            rgba(
                255,
                255,
                255,
                .25
            )
        );
}


#borrow-view .panel-heading > div {
    min-width: 0;
}


#borrow-view .panel-heading > div > span {
    display: block;

    margin-bottom: 7px;

    color:
        var(--green-dark);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


#borrow-view .panel-heading h2 {
    margin: 0;

    color:
        var(--ink);

    font-size: 23px;

    font-weight: 900;

    letter-spacing: -.8px;
}


#borrow-view .panel-heading small {
    flex: 0 0 auto;

    margin-top: 3px;

    padding:
        7px 9px;

    border:
        1px solid
        #d9dfd9;

    border-radius: 7px;

    background:
        #fff;

    color:
        #69736d;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   BORROW STEP 1
========================================================= */

#borrow-step-1 .form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 22px;

    padding: 30px;
}


#borrow-step-1 .field {
    min-width: 0;
}


#borrow-step-1 .field.full {
    grid-column:
        1 / -1;
}


#borrow-step-1 .field label {
    display: block;

    margin-bottom: 8px;

    color:
        #4f5a53;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;
}


#borrow-step-1 .field input {
    width: 100%;

    height: 52px;

    padding:
        0 15px;

    border:
        1px solid
        #d8ddd7;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .9
        );

    color:
        var(--ink);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


#borrow-step-1 .field input::placeholder {
    color:
        #a1a8a3;

    font-weight: 400;
}


#borrow-step-1 .field input:focus {
    border-color:
        var(--green);

    background:
        #fff;

    box-shadow:
        0 0 0 3px
        rgba(
            8,
            124,
            67,
            .10
        );
}


#borrow-step-1 .field.invalid input {
    border-color:
        #d94a4a;

    background:
        #fffafa;

    box-shadow:
        0 0 0 3px
        rgba(
            217,
            74,
            74,
            .08
        );
}


#borrow-step-1 .field-error {
    display: block;

    min-height: 16px;

    margin-top: 6px;

    color:
        #c43c3c;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   BORROW STEP 2
========================================================= */

#borrow-step-2 .amount-label {
    display: block;

    padding:
        30px 30px 10px;

    color:
        #4f5a53;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.1px;

    text-transform: uppercase;
}


#borrow-step-2 .money-field {
    display: flex;

    align-items: center;

    min-height: 122px;

    margin:
        0 30px;

    padding:
        0 24px;

    border:
        1px solid
        #cdd5ce;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f5f7f2
        );

    box-shadow:
        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            .9
        );
}


#borrow-step-2 .money-field > span {
    flex: 0 0 auto;

    margin-right: 13px;

    color:
        var(--green-dark);

    font-size: 34px;

    font-weight: 900;

    line-height: 1;
}


#borrow-step-2 .money-field input {
    width: 100%;

    min-width: 0;

    padding: 0;

    border: 0;

    outline: 0;

    background:
        transparent;

    color:
        var(--ink);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size:
        clamp(
            42px,
            7vw,
            68px
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -3px;
}


#borrow-step-2 .money-field input::placeholder {
    color:
        #b3b9b4;

    letter-spacing: -2px;
}


#borrow-step-2 #amount-error {
    display: block;

    min-height: 16px;

    margin:
        7px 30px 0;

    color:
        #c43c3c;

    font-size: 11px;

    font-weight: 700;
}


#borrow-step-2 .quick-amounts {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    margin:
        22px 30px 30px;
}


#borrow-step-2 .quick-amounts > span {
    margin-right: 4px;

    color:
        #7d857f;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;
}


#borrow-step-2 .quick-amounts button {
    min-height: 34px;

    padding:
        0 13px;

    border:
        1px solid
        #d7ddd8;

    border-radius: 8px;

    background:
        #fff;

    color:
        #38423b;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    font-weight: 900;

    cursor: pointer;
}


#borrow-step-2 .quick-amounts button:focus-visible {
    outline:
        2px solid
        var(--green);

    outline-offset: 2px;
}


#borrow-step-2 .loan-preview {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    margin:
        0 30px 26px;

    border-top:
        1px solid
        #e3e6e2;

    border-bottom:
        1px solid
        #e3e6e2;
}


#borrow-step-2 .loan-preview > div {
    padding:
        18px 0;
}


#borrow-step-2 .loan-preview > div + div {
    padding-left:
        22px;

    border-left:
        1px solid
        #e3e6e2;
}


#borrow-step-2 .loan-preview span {
    display: block;

    margin-bottom: 6px;

    color:
        #858c87;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;

    text-transform: uppercase;
}


#borrow-step-2 .loan-preview strong {
    display: block;

    color:
        var(--ink);

    font-size: 14px;

    font-weight: 900;
}


/* =========================================================
   NOTICE BOX
========================================================= */

#borrow-view .notice-box {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin:
        0 30px 30px;

    padding:
        15px 16px;

    border:
        1px solid
        #e0e3df;

    border-left:
        3px solid
        var(--orange);

    border-radius: 10px;

    background:
        rgba(
            247,
            248,
            244,
            .92
        );
}


#borrow-view .notice-icon {
    display: grid;

    place-items: center;

    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    border-radius: 50%;

    background:
        #fff0df;

    color:
        #b9621f;

    font-size: 11px;

    font-weight: 900;
}


#borrow-view .notice-box p {
    margin:
        2px 0 0;

    color:
        #68716b;

    font-size: 11px;

    line-height: 1.6;
}


/* =========================================================
   BORROW STEP 3
========================================================= */

#borrow-step-3 .review-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 16px;

    padding: 30px;
}


#borrow-step-3 .review-block {
    padding: 20px;

    border:
        1px solid
        #dfe4df;

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            .82
        );
}


#borrow-step-3 .review-block-title {
    margin-bottom: 13px;

    color:
        var(--green-dark);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


#borrow-step-3 .review-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding:
        11px 0;

    border-top:
        1px solid
        #edf0ec;
}


#borrow-step-3 .review-row:first-of-type {
    border-top: 0;
}


#borrow-step-3 .review-row span {
    flex: 0 0 auto;

    color:
        #8a928d;

    font-size: 10px;

    font-weight: 700;
}


#borrow-step-3 .review-row strong {
    min-width: 0;

    color:
        var(--ink);

    font-size: 11px;

    font-weight: 900;

    text-align: right;

    overflow-wrap: anywhere;
}


#borrow-step-3 .review-total {
    grid-column:
        1 / -1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 1px;

    padding:
        21px 22px;

    border:
        1px solid
        rgba(
            8,
            124,
            67,
            .20
        );

    border-radius: 13px;

    background:
        linear-gradient(
            100deg,
            rgba(
                8,
                124,
                67,
                .085
            ),
            rgba(
                255,
                255,
                255,
                .85
            )
        );
}


#borrow-step-3 .review-total span {
    color:
        var(--green-dark);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}


#borrow-step-3 .review-total strong {
    color:
        var(--ink);

    font-size: 27px;

    font-weight: 900;

    letter-spacing: -1px;
}


#borrow-step-3 .review-content > .notice-box {
    grid-column:
        1 / -1;

    margin: 0;
}


/* =========================================================
   BORROW ACTIONS
========================================================= */

#borrow-view .step-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    width: 100%;

    max-width: 960px;

    margin:
        0 auto;
}


#borrow-view .primary-action,
#borrow-view .secondary-action {
    min-height: 52px;

    padding:
        0 21px;

    border-radius: 10px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .8px;

    cursor: pointer;
}


#borrow-view .primary-action {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    min-width: 190px;

    border:
        1px solid
        var(--green-dark);

    background:
        linear-gradient(
            180deg,
            var(--green),
            var(--green-dark)
        );

    color:
        #fff;

    box-shadow:
        0 8px 18px
        rgba(
            3,
            61,
            33,
            .15
        );
}


#borrow-view .primary-action span {
    font-size: 17px;

    line-height: 1;
}


#borrow-view .secondary-action {
    border:
        1px solid
        #d4dad5;

    background:
        rgba(
            255,
            255,
            255,
            .9
        );

    color:
        #48524c;
}


#borrow-view .primary-action:focus-visible,
#borrow-view .secondary-action:focus-visible {
    outline:
        2px solid
        var(--orange);

    outline-offset: 3px;
}


#borrow-view .primary-action:disabled {
    opacity: .55;

    cursor:
        not-allowed;

    box-shadow:
        none;
}


#borrow-step-1 .primary-action {
    display: flex;

    margin-left: auto;
}


#borrow-step-2 .step-actions,
#borrow-step-3 .step-actions {
    align-items: stretch;
}


#borrow-step-2 .step-actions .secondary-action,
#borrow-step-3 .step-actions .secondary-action {
    min-width: 120px;
}


#borrow-step-2 .step-actions .primary-action,
#borrow-step-3 .step-actions .primary-action {
    margin-left: auto;
}


/* =========================================================
   PAY VIEW
========================================================= */

#pay-view .back-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 28px;

    padding: 0;

    border: 0;

    background:
        transparent;

    color:
        var(--green-dark);

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .9px;

    cursor: pointer;
}


#pay-view .view-heading {
    margin-bottom: 32px;
}


#pay-view .view-heading h1 {
    margin:
        9px 0 0;

    color:
        var(--ink);

    font-size:
        clamp(
            38px,
            5vw,
            58px
        );

    font-weight: 900;

    line-height: .98;

    letter-spacing: -2.8px;
}


#pay-view .view-heading p {
    max-width: 620px;

    margin-top: 13px;

    color:
        var(--muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   LOOKUP
========================================================= */

.lookup-panel {
    position: relative;

    max-width: 960px;

    margin:
        0 auto 25px;

    padding: 28px 30px;

    border:
        1px solid
        rgba(
            3,
            61,
            33,
            .12
        );

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(
                255,
                255,
                255,
                .96
            ),
            rgba(
                247,
                247,
                242,
                .94
            )
        );

    box-shadow:
        var(--shadow-md);

    overflow: hidden;
}


.lookup-panel::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        var(--orange);
}


.lookup-heading span {
    display: block;

    color:
        #818a84;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.1px;
}


.lookup-heading h2 {
    margin:
        7px 0 0;

    font-size: 23px;

    font-weight: 900;

    letter-spacing: -.7px;
}


.lookup-heading p {
    margin:
        7px 0 0;

    color:
        var(--muted);

    font-size: 12px;
}


.lookup-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 10px;

    margin-top: 23px;
}


.lookup-row input {
    width: 100%;

    height: 50px;

    padding:
        0 15px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        #fff;

    color:
        var(--ink);

    outline: none;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .5px;
}


.lookup-row input:focus {
    border-color:
        var(--green);

    box-shadow:
        0 0 0 3px
        rgba(
            8,
            124,
            67,
            .10
        );
}


.lookup-button {
    min-width: 130px;

    padding:
        0 22px;

    border:
        1px solid
        var(--green-dark);

    border-radius: 10px;

    background:
        var(--green-dark);

    color:
        #fff;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .9px;

    cursor: pointer;
}


#search-error {
    display: block;

    margin-top: 7px;

    color:
        #c43c3c;

    font-size: 11px;

    font-weight: 700;
}


.demo-account-list {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 17px;
}


.demo-account-list > span {
    margin-right: 3px;

    color:
        #888f8a;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


.demo-id {
    padding:
        7px 9px;

    border:
        1px solid
        #d8ddd8;

    border-radius: 7px;

    background:
        #fff;

    color:
        #536058;

    font-size: 9px;

    font-weight: 900;

    cursor: pointer;
}


/* =========================================================
   ACCOUNT RESULT
========================================================= */

.account-shell {
    max-width: 960px;

    margin:
        0 auto;
}


.account-header {
    position: relative;

    overflow: hidden;

    border-radius: 20px 20px 0 0;

    background:
        var(--green-deep);

    color:
        #fff;
}


.account-header::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--green) 0%,
            var(--green) 58%,
            var(--yellow) 58%,
            var(--yellow) 71%,
            var(--orange) 71%,
            var(--orange) 84%,
            var(--red) 84%,
            var(--red) 100%
        );
}


.account-header-content {
    padding:
        27px 30px 29px;
}


.account-top-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.account-kicker {
    color:
        rgba(
            255,
            255,
            255,
            .62
        );

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.1px;
}


.account-name {
    margin-top: 8px;

    font-size: 28px;

    font-weight: 900;

    letter-spacing: -1.1px;
}


.account-id {
    margin-top: 5px;

    color:
        rgba(
            255,
            255,
            255,
            .68
        );

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .8px;
}


.account-status {
    padding:
        7px 10px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .09
        );

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .8px;

    text-transform: uppercase;
}


.account-meta {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 25px;

    margin-top: 27px;
}


.account-meta-item span {
    display: block;

    color:
        rgba(
            255,
            255,
            255,
            .52
        );

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .9px;
}


.account-meta-item strong {
    display: block;

    margin-top: 5px;

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   BALANCE
========================================================= */

.balance-area {
    padding:
        24px 30px;

    border:
        1px solid
        var(--border);

    border-top: 0;

    background:
        rgba(
            255,
            255,
            255,
            .82
        );
}


.balance-card-large {
    padding:
        23px;

    border:
        1px solid
        rgba(
            8,
            124,
            67,
            .15
        );

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(
                8,
                124,
                67,
                .07
            ),
            rgba(
                255,
                255,
                255,
                .9
            )
        );
}


.balance-card-large span {
    display: block;

    color:
        #7f8882;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


.balance-card-large strong {
    display: block;

    margin-top: 10px;

    color:
        var(--ink);

    font-size:
        clamp(
            32px,
            5vw,
            52px
        );

    font-weight: 900;

    letter-spacing: -2px;
}


.balance-sub {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    margin-top: 13px;
}


.balance-sub > div {
    padding:
        12px 0;
}


.balance-sub > div + div {
    padding-left: 20px;

    border-left:
        1px solid
        #e5e9e4;
}


.balance-sub span {
    display: block;

    color:
        #8b928d;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .9px;
}


.balance-sub strong {
    display: block;

    margin-top: 4px;

    color:
        var(--ink);

    font-size: 12px;

    font-weight: 900;
}


/* =========================================================
   PAYMENT AREA
========================================================= */

.payment-area {
    margin-top: 15px;

    padding:
        26px 30px;

    border:
        1px solid
        var(--border);

    background:
        rgba(
            255,
            255,
            255,
            .84
        );
}


.payment-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.payment-header > span {
    color:
        var(--green-dark);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.1px;
}


.payment-header small {
    color:
        #7e8781;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .7px;
}


.payment-entry {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px;

    gap: 18px;

    margin-top: 17px;
}


.payment-display {
    display: flex;

    align-items: center;

    min-height: 62px;

    padding:
        0 17px;

    border:
        1px solid
        #d9ded9;

    border-radius: 10px;

    background:
        #f7f8f5;
}


.payment-display > span {
    margin-right: 9px;

    color:
        var(--green-dark);

    font-size: 20px;

    font-weight: 900;
}


.payment-display input {
    width: 100%;

    border: 0;

    outline: 0;

    background:
        transparent;

    color:
        var(--ink);

    font-size: 23px;

    font-weight: 900;
}


.keypad {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 6px;

    margin-top: 9px;
}


.key {
    min-height: 45px;

    border:
        1px solid
        #dfe3de;

    border-radius: 8px;

    background:
        #fff;

    color:
        var(--ink);

    font-size: 12px;

    font-weight: 900;

    cursor: pointer;
}


.key.clear {
    color:
        #ba6221;
}


.key.action {
    color:
        var(--green-dark);
}


.payment-submit {
    align-self: end;

    min-height: 54px;

    border:
        1px solid
        var(--green-dark);

    border-radius: 10px;

    background:
        var(--green-dark);

    color:
        #fff;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .9px;

    cursor: pointer;
}


.payment-area .quick-amounts {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 17px;
}


.payment-area .quick-amounts > span {
    margin-right: 4px;

    color:
        #858d87;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .9px;
}


.payment-shortcut {
    padding:
        7px 9px;

    border:
        1px solid
        #d8ddd8;

    border-radius: 7px;

    background:
        #fff;

    color:
        #4e5a52;

    font-size: 8px;

    font-weight: 900;

    cursor: pointer;
}


/* =========================================================
   PAYMENT HISTORY
========================================================= */

.history-area {
    margin-top: 15px;

    border:
        1px solid
        var(--border);

    border-radius: 0 0 20px 20px;

    background:
        rgba(
            255,
            255,
            255,
            .82
        );

    overflow: hidden;
}


.history-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        17px 22px;

    border-bottom:
        1px solid
        var(--border);

    background:
        #f7f8f5;
}


.history-title span {
    color:
        #7d857f;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .9px;
}


.history-list {
    display: flex;

    flex-direction: column;
}


.history-item {
    display: grid;

    grid-template-columns:
        120px
        minmax(
            0,
            1fr
        )
        150px;

    gap: 20px;

    padding:
        18px 22px;

    border-bottom:
        1px solid
        #edf0ec;
}


.history-item:last-child {
    border-bottom: 0;
}


.history-date {
    color:
        #69736d;

    font-size: 10px;

    font-weight: 800;
}


.history-payment strong,
.history-balance strong {
    display: block;

    color:
        var(--ink);

    font-size: 13px;

    font-weight: 900;
}


.history-payment small,
.history-balance small {
    display: block;

    margin-top: 3px;

    color:
        #8a928d;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .4px;
}


/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: grid;

    place-items: center;

    padding: 20px;

    background:
        rgba(
            2,
            18,
            10,
            .68
        );
}


.modal {
    position: relative;

    width: min(
        100%,
        560px
    );

    max-height:
        calc(
            100vh - 40px
        );

    overflow-y: auto;

    padding:
        34px;

    border:
        1px solid
        rgba(
            3,
            61,
            33,
            .14
        );

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );

    box-shadow:
        var(--shadow-lg);
}


.modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border:
        1px solid
        #e1e4e0;

    border-radius: 50%;

    background:
        #fff;

    color:
        #67706a;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;
}


.success-mark {
    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    border-radius: 50%;

    background:
        rgba(
            8,
            124,
            67,
            .10
        );

    color:
        var(--green);

    font-size: 22px;

    font-weight: 900;
}


.modal-kicker {
    color:
        var(--green-dark);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.15px;
}


.modal h2 {
    margin:
        8px 0 0;

    color:
        var(--ink);

    font-size: 29px;

    font-weight: 900;

    letter-spacing: -1px;
}


.modal > p {
    margin:
        10px 0 0;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   REVIEW BLOCKS
========================================================= */

.modal .review-block {
    margin-top: 18px;

    padding:
        17px;

    border:
        1px solid
        #e0e4df;

    border-radius: 11px;

    background:
        rgba(
            255,
            255,
            255,
            .82
        );
}


.modal .review-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding:
        10px 0;

    border-top:
        1px solid
        #edf0ec;
}


.modal .review-row:first-child {
    border-top: 0;
}


.modal .review-row span {
    color:
        #858d87;

    font-size: 9px;

    font-weight: 700;
}


.modal .review-row strong {
    max-width: 60%;

    color:
        var(--ink);

    font-size: 10px;

    font-weight: 900;

    text-align: right;

    overflow-wrap: anywhere;
}


.modal .review-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 13px;

    padding:
        17px;

    border:
        1px solid
        rgba(
            8,
            124,
            67,
            .16
        );

    border-radius: 11px;

    background:
        rgba(
            8,
            124,
            67,
            .06
        );
}


.modal .review-total span {
    color:
        var(--green-dark);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .9px;
}


.modal .review-total strong {
    color:
        var(--ink);

    font-size: 19px;

    font-weight: 900;
}


/* =========================================================
   RECEIPT
========================================================= */

.receipt {
    position: relative;

    margin-top: 20px;

    padding:
        22px 20px;

    border:
        1px solid
        #d8ddd7;

    background:
        linear-gradient(
            180deg,
            #fcfcfa,
            #f2f3ef
        );

    box-shadow:
        0 7px 18px
        rgba(
            23,
            29,
            25,
            .05
        );
}


.receipt-brand {
    color:
        var(--green-dark);

    font-size: 18px;

    font-weight: 900;

    text-align: center;

    letter-spacing: -.5px;
}


.receipt-sub {
    margin-top: 4px;

    color:
        #868e89;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;

    text-align: center;
}


.receipt-rule {
    height: 1px;

    margin:
        17px 0;

    background:
        repeating-linear-gradient(
            90deg,
            #cfd4cf 0,
            #cfd4cf 4px,
            transparent 4px,
            transparent 8px
        );
}


.receipt-row {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding:
        8px 0;
}


.receipt-row span {
    color:
        #7e8781;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .7px;
}


.receipt-row strong {
    max-width: 65%;

    color:
        var(--ink);

    font-size: 10px;

    font-weight: 900;

    text-align: right;

    overflow-wrap: anywhere;
}


.receipt-total {
    margin-top: 7px;

    padding-top: 11px;

    border-top:
        1px solid
        #d8ddd7;
}


.receipt-total .receipt-row {
    padding-bottom: 0;
}


.receipt-total strong {
    font-size: 13px;
}


/* =========================================================
   MODAL ACTIONS
========================================================= */

.modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 22px;
}


.modal-button {
    min-height: 46px;

    padding:
        0 16px;

    border-radius: 9px;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .8px;

    cursor: pointer;
}


.modal-button.secondary {
    border:
        1px solid
        #d4dad5;

    background:
        #fff;

    color:
        #4b574f;
}


.modal-button.primary {
    border:
        1px solid
        var(--green-dark);

    background:
        var(--green-dark);

    color:
        #fff;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;

    left: 50%;

    bottom: 24px;

    z-index: 11000;

    min-width: 250px;

    max-width:
        calc(
            100vw - 40px
        );

    padding:
        13px 16px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    border-radius: 9px;

    background:
        #17211b;

    color:
        #fff;

    font-size: 10px;

    font-weight: 800;

    line-height: 1.4;

    text-align: center;

    box-shadow:
        0 14px 30px
        rgba(
            0,
            0,
            0,
            .18
        );

    transform:
        translate(
            -50%,
            calc(
                100% + 30px
            )
        );

    opacity: 0;

    pointer-events: none;

    transition:
        transform .2s ease,
        opacity .2s ease;
}


.toast.show {
    opacity: 1;

    transform:
        translate(
            -50%,
            0
        );
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 980px) {

    .quick-accounts {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .payment-entry {
        grid-template-columns:
            1fr;
    }


    .payment-submit {
        min-height: 50px;
    }

}


@media (max-width: 760px) {

    .main-content {
        width:
            calc(
                100% - 28px
            );

        padding:
            36px 0 55px;
    }


    .app-header {
        min-height: 68px;

        padding:
            0 14px;
    }


    .mini-logo {
        width: 34px;
        height: 34px;

        font-size: 18px;
    }


    .brand-copy strong {
        font-size: 14px;
    }


    .brand-copy span {
        font-size: 8px;
    }


    .welcome-section {
        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

        margin-bottom: 27px;
    }


    .welcome-section h1 {
        font-size: 42px;

        letter-spacing: -2.3px;
    }


    .store-tag {
        display: none;
    }


    .service-grid {
        grid-template-columns:
            1fr;

        gap: 13px;

        margin-bottom: 38px;
    }


    .service-card {
        min-height: 235px;

        padding: 25px;
    }


    .service-card-content h2 {
        font-size: 27px;
    }


    .service-card-bottom {
        left: 25px;
        right: 25px;
        bottom: 22px;
    }


    .overview-grid {
        grid-template-columns:
            1fr;

        gap: 10px;

        margin-bottom: 35px;
    }


    .overview-card {
        min-height: 105px;
    }


    .quick-accounts {
        grid-template-columns:
            1fr;
    }


    /* Borrow */

    #borrow-view .view-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 0;

        margin-bottom: 25px;
    }


    #borrow-view .view-heading h1 {
        font-size: 39px;

        letter-spacing: -2px;
    }


    #borrow-view .stepper {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 7px;

        margin-bottom: 24px;

        padding: 10px;
    }


    #borrow-view .step {
        justify-content: center;

        padding:
            6px 4px;
    }


    #borrow-view .step span {
        width: 30px;
        height: 30px;

        flex-basis: 30px;
    }


    #borrow-view .step strong {
        display: none;
    }


    #borrow-view .step-line {
        display: none;
    }


    #borrow-view .panel {
        border-radius: 16px;
    }


    #borrow-view .panel-heading {
        padding: 22px;
    }


    #borrow-view .panel-heading h2 {
        font-size: 20px;
    }


    #borrow-view .panel-heading small {
        display: none;
    }


    #borrow-step-1 .form-grid {
        grid-template-columns:
            1fr;

        padding: 22px;

        gap: 18px;
    }


    #borrow-step-1 .field.full {
        grid-column: auto;
    }


    #borrow-step-2 .amount-label {
        padding:
            24px 22px 9px;
    }


    #borrow-step-2 .money-field {
        min-height: 96px;

        margin:
            0 22px;

        padding:
            0 18px;
    }


    #borrow-step-2 .money-field > span {
        font-size: 27px;
    }


    #borrow-step-2 .money-field input {
        font-size: 43px;

        letter-spacing: -2px;
    }


    #borrow-step-2 #amount-error {
        margin-left: 22px;

        margin-right: 22px;
    }


    #borrow-step-2 .quick-amounts {
        margin:
            18px 22px 22px;
    }


    #borrow-step-2 .loan-preview {
        margin:
            0 22px 22px;
    }


    #borrow-step-2 .loan-preview > div {
        padding:
            15px 0;
    }


    #borrow-step-2 .loan-preview > div + div {
        padding-left: 14px;
    }


    #borrow-view .notice-box {
        margin-left: 22px;

        margin-right: 22px;

        margin-bottom: 22px;
    }


    #borrow-step-3 .review-content {
        grid-template-columns:
            1fr;

        padding: 22px;
    }


    #borrow-step-3 .review-total {
        grid-column: auto;

        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }


    #borrow-step-3 .review-total strong {
        font-size: 25px;
    }


    #borrow-step-3 .review-content > .notice-box {
        grid-column: auto;

        margin: 0;
    }


    #borrow-view .step-actions {
        flex-direction: column-reverse;
    }


    #borrow-view .primary-action,
    #borrow-view .secondary-action {
        width: 100%;

        min-width: 0;
    }


    #borrow-step-1 .primary-action,
    #borrow-step-2 .step-actions .primary-action,
    #borrow-step-3 .step-actions .primary-action {
        margin-left: 0;
    }


    /* Pay */

    .lookup-panel {
        padding:
            23px;
    }


    .lookup-row {
        grid-template-columns:
            1fr;
    }


    .lookup-button {
        min-height: 50px;
    }


    .account-header-content,
    .balance-area,
    .payment-area {
        padding-left: 22px;
        padding-right: 22px;
    }


    .account-name {
        font-size: 24px;
    }


    .account-meta {
        grid-template-columns:
            1fr;

        gap: 12px;

        margin-top: 22px;
    }


    .balance-card-large strong {
        font-size: 38px;

        letter-spacing: -1.5px;
    }


    .balance-sub {
        grid-template-columns:
            1fr;
    }


    .balance-sub > div + div {
        padding-left: 0;

        border-left: 0;

        border-top:
            1px solid
            #e5e9e4;
    }


    .history-item {
        grid-template-columns:
            1fr;

        gap: 8px;
    }


    /* Modal */

    .modal {
        padding:
            27px 21px;
    }


    .modal-actions {
        flex-direction: column-reverse;
    }


    .modal-button {
        width: 100%;
    }

}


@media (max-width: 430px) {

    .welcome-section h1 {
        font-size: 36px;

        letter-spacing: -2px;
    }


    #borrow-view .view-heading h1 {
        font-size: 34px;
    }


    #borrow-view .stepper {
        border-radius: 14px;
    }


    #borrow-step-3 .review-block {
        padding: 16px;
    }


    #borrow-step-3 .review-row {
        gap: 12px;
    }


    #borrow-step-3 .review-row span,
    #borrow-step-3 .review-row strong {
        font-size: 10px;
    }


    .lookup-panel {
        padding:
            20px;
    }


    .account-header-content {
        padding:
            23px 20px 26px;
    }


    .balance-area,
    .payment-area {
        padding:
            20px;
    }


    .account-top-row {
        align-items: flex-start;

        flex-direction: column;
    }


    .account-status {
        align-self: flex-start;
    }


    .modal {
        width: 100%;

        max-height:
            calc(
                100vh - 24px
            );

        padding:
            25px 18px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }

}

.id-upload {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92px;
    padding: 14px;
    border: 1px dashed #cbd3cc;
    border-radius: 12px;
    background: linear-gradient(145deg, #fafbf8, #f3f5f1);
}

.id-photo-input,
#pay-id-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.id-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #d3dad4;
    border-radius: 9px;
    background: #fff;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .8px;
    cursor: pointer;
}

.id-photo-preview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #dde2dd;
    border-radius: 11px;
    background: #fff;
}

.id-photo-preview-card img {
    display: block;
    width: 110px;
    height: 72px;
    object-fit: cover;
    border-radius: 7px;
    border: 1px solid #d9ded9;
}

.id-photo-preview-card strong {
    display: block;
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .7px;
}

.id-photo-preview-card span {
    display: block;
    margin-top: 4px;
    color: #7b847e;
    font-size: 9px;
}

#borrow-step-3 .review-id-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 10px;
    border-radius: 9px;
    background: #f4f5f1;
}

#borrow-step-3 .review-id-photo img {
    display: block;
    width: 100%;
    max-width: 230px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 7px;
    border: 1px solid #d8ddd8;
}

.id-verification {
    margin-top: 15px;
    padding: 22px 30px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.84);
}

.id-verification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.id-verification-header span {
    color: var(--green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
}

.id-verification-header strong {
    color: #7c857f;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .6px;
}

.id-verification-content {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
}

.id-verification-content img {
    display: block;
    width: 145px;
    height: 92px;
    object-fit: cover;
    border: 1px solid #d5dbd5;
    border-radius: 8px;
    background: #f4f5f2;
}

.id-verification-content span {
    display: block;
    color: #8a928d;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .8px;
}

.id-verification-content strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.id-verification-content small {
    display: block;
    margin-top: 5px;
    color: #818a84;
    font-size: 9px;
}

.id-verification-empty {
    margin-top: 15px;
    padding: 13px;
    border-radius: 8px;
    background: #f6f7f4;
    color: #747d77;
    font-size: 10px;
    line-height: 1.5;
}

.id-verification-upload {
    margin-top: 14px;
}

.id-verification-upload .id-upload-label {
    min-height: 38px;
}

.loan-ticket {
    position: relative;
    width: 100%;
    margin-top: 21px;
    padding: 24px 20px;
    border: 1px solid #d6dbd5;
    background: linear-gradient(180deg, #ffffff, #f5f6f2);
    box-shadow: 0 10px 24px rgba(23,29,25,.07);
}

.ticket-brand {
    color: var(--green-dark);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -.6px;
}

.ticket-label {
    margin-top: 4px;
    color: #808982;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
    text-align: center;
}

.ticket-status {
    width: fit-content;
    margin: 14px auto 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(8,124,67,.09);
    color: var(--green-dark);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .7px;
}

.ticket-rule {
    height: 1px;
    margin: 18px 0;
    background: repeating-linear-gradient(
        90deg,
        #cbd1cb 0,
        #cbd1cb 4px,
        transparent 4px,
        transparent 8px
    );
}

.ticket-instruction {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid rgba(245,130,32,.22);
    border-radius: 8px;
    background: rgba(245,130,32,.07);
    color: #a55617;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .9px;
    text-align: center;
}

.ticket-demo {
    margin-top: 15px;
    color: #969d98;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .8px;
    text-align: center;
}

@media (max-width: 760px) {
    .id-verification {
        padding: 20px 22px;
    }

    .id-verification-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .id-verification-content img {
        width: 180px;
        height: 115px;
    }

    .id-photo-preview-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .id-photo-preview-card img {
        width: 100%;
        height: 150px;
    }

    .loan-ticket {
        padding: 22px 16px;
    }
}
