@font-face {
    font-family: "Poppins Local";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../static2/webfonts/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins Local";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../../static2/webfonts/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins Local";
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
    src: url("../../static2/webfonts/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2") format("woff2");
}

:root {
    --db-navy: #1c2f63;
    --db-navy-deep: #11214f;
    --db-navy-soft: #263f82;
    --db-card: #2a4488;
    --db-card-soft: #33529c;
    --db-line: rgba(100, 149, 255, .58);
    --db-lime: #b2ec5d;
    --db-lime-strong: #9fe34c;
    --db-cyan: #70d8ec;
    --db-white: #fff;
    --db-muted: #b8c7e8;
    --db-text-dark: #10204a;
    --db-radius: 18px;
    --db-radius-sm: 12px;
    --db-page-gutter: 24px;
    --db-shadow: 0 18px 45px rgba(4, 14, 42, .32);
}

.db-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    white-space: nowrap;
}

.db-brand-lockup__mark {
    display: block;
    width: 64px;
    height: 50px;
    overflow: hidden;
}

.db-brand-lockup__mark img {
    width: 64px !important;
    height: 62px !important;
    object-fit: cover !important;
    object-position: 50% 0 !important;
    transform: scale(1.22);
    transform-origin: 50% 0;
}

.db-brand-lockup__words {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.db-brand-lockup__words strong {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.35px;
}

.db-brand-lockup__words small {
    margin-top: 3px;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

html {
    background: #08122e;
}

body {
    width: 100%;
    max-width: 640px !important;
    min-height: 100%;
    margin: 0 auto !important;
    background: var(--db-navy) !important;
    color: var(--db-white) !important;
    overflow-x: hidden;
    box-shadow: 0 0 70px rgba(0, 0, 0, .35);
}

/*
 * UI2 vertically centred the entire body with top/left + translate on desktop.
 * Dana Bijak already uses auto margins for its mobile shell, so retaining that
 * legacy transform double-centres the page and pushes it to the right.
 */
@media (min-width: 640px) {
    body {
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }
}

/* Keep the mobile shell scrollable without the legacy 1px white track. */
.content-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.content-wrapper::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.content-wrapper::-webkit-scrollbar-track,
.content-wrapper::-webkit-scrollbar-thumb {
    background: transparent !important;
}

body, button, input, select, textarea {
    font-family: "Poppins Local", Poppins, "Helvetica Neue", Arial, sans-serif !important;
}

body.db-login-page {
    min-height: 100dvh;
    background:
        linear-gradient(180deg, rgba(18, 42, 91, .12) 0%, rgba(19, 42, 89, .36) 48%, rgba(15, 35, 77, .72) 100%),
        url("../images/city-login.jpg") center top / cover no-repeat !important;
}

body.db-home-page {
    background: var(--db-navy-deep) !important;
}

body.db-loan-page {
    background: var(--db-navy) !important;
}

.db-app {
    position: relative;
    min-height: 100dvh;
    color: var(--db-white);
}

.db-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--db-white);
    text-decoration: none;
}

.db-logo-mark {
    position: relative;
    width: 70px;
    height: 54px;
    flex: 0 0 auto;
}

.db-logo-mark::before {
    content: "";
    position: absolute;
    inset: 4px 4px 11px;
    background: linear-gradient(105deg, #74dcf0 0%, #3279dd 52%, #254f9d 100%);
    clip-path: polygon(0 100%, 0 70%, 15% 60%, 15% 100%, 25% 100%, 25% 40%, 42% 29%, 42% 100%, 52% 100%, 52% 5%, 70% 18%, 70% 100%, 80% 100%, 80% 50%, 100% 62%, 100% 100%);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2));
}

.db-logo-mark::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 25px;
    border-bottom: 5px solid var(--db-lime);
    border-radius: 50%;
    transform: rotate(5deg);
}

.db-logo-arrow {
    position: absolute;
    right: -1px;
    bottom: 1px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #5ab0e5;
    transform: rotate(-12deg);
}

.db-logo-type {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.db-logo-type strong {
    color: inherit;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .2px;
}

.db-logo-type small {
    margin-top: 3px;
    color: inherit;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
}

.db-logo--stacked {
    flex-direction: column;
    gap: 2px;
}

.db-logo--stacked .db-logo-mark {
    width: 112px;
    height: 88px;
}

.db-logo--stacked .db-logo-type {
    text-align: center;
}

.db-logo--stacked .db-logo-type strong {
    font-size: 30px;
}

.db-logo--stacked .db-logo-type small {
    font-size: 12px;
}

.db-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: currentColor;
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

.db-icon--phone::before { content: "⌕"; transform: rotate(-34deg); }
.db-icon--password::before { content: "•••"; letter-spacing: 1px; transform: translateY(-2px); }
.db-icon--arrow::before { content: "→"; font-size: 24px; }
.db-icon--menu::before { content: "≡"; font-size: 28px; font-weight: 700; transform: translateY(-1px); }
.db-icon--back::before { content: "←"; font-size: 24px; }
.db-icon--home::before { content: "⌂"; font-size: 25px; }
.db-icon--wallet::before { content: "▣"; font-size: 20px; }
.db-icon--account::before { content: "♙"; font-size: 23px; }
.db-icon--user::before { content: "◎"; font-size: 23px; }
.db-icon--calendar::before { content: "▦"; font-size: 23px; }
.db-icon--record::before { content: "◷"; font-size: 25px; }
.db-icon--about::before { content: "▥"; font-size: 23px; }

.db-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 10px 54px 10px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--db-lime), #b5ef61);
    color: var(--db-text-dark) !important;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease;
}

.db-btn:hover { filter: brightness(1.03); }
.db-btn:active { transform: scale(.985); }
.db-btn .db-icon--arrow {
    position: absolute;
    right: 17px;
}

.db-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 28px var(--db-page-gutter) 16px;
}

.db-menu-toggle, .db-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--db-lime);
    color: var(--db-text-dark);
    cursor: pointer;
}

.db-page-title {
    flex: 1;
    margin: 0 52px 0 0;
    color: var(--db-white);
    font-size: 21px;
    font-weight: 700;
    text-align: center;
}

.db-glass-card {
    border: 1px solid var(--db-line);
    border-radius: var(--db-radius);
    background: linear-gradient(145deg, rgba(47, 77, 151, .82), rgba(29, 51, 106, .85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.db-section-title {
    margin: 0;
    color: var(--db-white);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.db-prototype-shell {
    width: min(100%, 430px);
    margin: 0 auto;
}

.login-alter {
    z-index: 999 !important;
    background: rgba(5, 13, 38, .8) !important;
    backdrop-filter: blur(4px);
}

.login-alter-content {
    width: min(82vw, 306px) !important;
    padding: 24px 22px 20px !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: var(--db-shadow);
}

.alter-success, .alter-warning, .alter-error, .alter-doubt {
    width: 100% !important;
    height: 138px !important;
    margin: 0 auto 14px !important;
    border-radius: 14px !important;
    background: #c7d5ff !important;
    overflow: hidden;
}

.alter-success img, .alter-warning img, .alter-error img, .alter-doubt img {
    display: block !important;
    width: 112px !important;
    height: 112px !important;
    margin: 13px auto !important;
    object-fit: contain;
}

.alter-title, .alter-desc {
    text-align: left !important;
}

.alter-title {
    color: var(--db-text-dark) !important;
    font-size: 18px !important;
}

.alter-desc {
    color: #8390ad !important;
    font-size: 14px !important;
}

.alter-but {
    width: 100% !important;
    height: 46px !important;
    margin-top: 20px !important;
    border-radius: 999px !important;
    background: var(--db-lime) !important;
    color: var(--db-text-dark) !important;
    line-height: 46px !important;
}

@media (max-width: 374px) {
    :root { --db-page-gutter: 18px; }
    .db-logo-type strong { font-size: 18px; }
    .db-logo-mark { width: 61px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
