:root {
    color-scheme: light;
    --ink: #171717;
    --muted: #8d9194;
    --soft-ink: #5d707b;
    --surface: #fff;
    --page: #f4f4f5;
    --field: #f1f1f1;
    --lime: #c7ff31;
    --green: #24a85b;
    --line: #e2e3e5;
    --default-font: "Inter";
    --app-top-space: calc(42px + env(safe-area-inset-top));
    font-family: var(--default-font);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; overscroll-behavior: none; background: var(--page); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; min-height: 100svh; margin: 0; overflow-x: clip; overscroll-behavior: none; color: var(--ink); background: var(--page); touch-action: pan-y pinch-zoom; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6, .desktop-brand, nav, .sidebar-logout { font-family: inherit; }
button, a, input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { max-width: 100%; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { display: block; }
u { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.welcome-screen { display: none; }
html.has-welcome { overflow: hidden; background: #fff; }
.has-welcome .welcome-screen { position: fixed; z-index: 1000; inset: 0; display: block; overflow: hidden; color: #171717; background: #fff; opacity: 1; transition: opacity .26s ease; }
.has-welcome .welcome-screen.is-leaving { opacity: 0; pointer-events: none; }
.welcome-brand { position: absolute; top: 47.8%; left: 50%; width: min(260px, calc(100% - 40px)); transform: translateX(-50%); text-align: center; }
.welcome-tree { width: 56px; height: auto; display: block; margin: 0 auto; }
.welcome-tagline-window { margin-top: 26px; overflow: hidden; }
.welcome-tagline { margin: 0; color: #28a447; font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.has-welcome .welcome-tagline { animation: welcome-tagline-in 1.25s cubic-bezier(.22, 1, .36, 1) .15s both; }
.welcome-bank { position: absolute; right: 20px; bottom: calc(40px + env(safe-area-inset-bottom)); left: 20px; margin: 0; text-align: center; font-size: 17px; line-height: 24px; }
@keyframes welcome-tagline-in { from { opacity: 0; transform: translateX(-100%); } to { opacity: 1; transform: translateX(0); } }

.mobile-top-space { display: none; }
.portal-frame { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.desktop-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 34px 18px 24px; background: #fff; border-right: 1px solid #e8e8e8; }
.desktop-brand { margin: 0 15px 48px; font-size: 21px; font-weight: 700; }
.desktop-sidebar nav { display: grid; gap: 8px; }
.desktop-sidebar nav a, .sidebar-logout button { min-height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 14px; border: 0; border-radius: 12px; color: #5e6266; background: transparent; text-align: left; font-size: 15px; font-weight: 600; }
.desktop-sidebar nav a.is-current { color: var(--ink); background: #f1f1f1; }
.desktop-sidebar nav svg, .sidebar-logout svg { flex: 0 0 auto; width: 21px; height: 21px; }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { width: 100%; cursor: pointer; }
.portal-main { min-width: 0; padding: 72px clamp(28px, 5vw, 76px) 60px; }
.desktop-page-title { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto 32px; }
.desktop-page-title h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 600; }
.eyebrow { margin: 0 0 7px; color: #7a8185; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.text-action { padding: 10px 14px; border: 0; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.mobile-page-head, .mobile-toolbar { display: none; }

.auth-main { min-height: 100svh; background: #fff; }
.login-page { background: #fff; }
.login-screen { position: relative; width: min(100%, 540px); min-height: 100svh; display: flex; flex-direction: column; margin: 0 auto; padding: clamp(150px, 21.13svh, 210px) 20px calc(60px + env(safe-area-inset-bottom)); background: #fff; }
.login-heading { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 22px; }
.login-heading h1 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.privacy-toggle { width: 40px; height: 40px; padding: 0; }
.privacy-toggle span { display: grid; place-items: center; }
.privacy-toggle span[hidden] { display: none; }
.login-form { display: grid; flex: 0 0 auto; gap: 24px; }
.phone-field, .password-field { position: relative; width: 100%; height: 60px; display: flex; align-items: center; border-radius: 13px; background: var(--field); }
.country-flag { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; margin-left: 18px; overflow: hidden; border-radius: 50%; background: #e32228; }
.country-flag::after { width: 64%; height: 64%; background: #ffdf32; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%); content: ""; }
.country-code { margin-left: 8px; color: #999; font-size: 17px; }
.phone-divider { width: 1px; height: 22px; margin: 0 12px; background: #bcbcbc; }
.phone-field input, .password-field input { width: 100%; min-width: 0; height: 100%; padding: 0 16px 0 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.phone-field input:focus, .password-field input:focus { outline: 0; }
.password-field input { padding: 0 16px; }
.password-field input::placeholder { color: #9b9b9b; opacity: 1; }
.primary-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 17px; color: #fff; background: #171717; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.primary-button:active { background: #333; }
.login-submit { width: 100%; min-height: 60px; margin-top: 8px; border-radius: 18px; font-size: 18px; font-weight: 700; }
.remember-choice { width: max-content; display: flex; align-items: center; gap: 8px; margin-top: 1px; font-size: 16px; line-height: 24px; cursor: pointer; }
.remember-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.custom-check { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #191919; border-radius: 7px; color: transparent; background: #fff; }
.remember-choice input:checked + .custom-check { color: white; background: #171717; }
.remember-choice input:focus-visible + .custom-check { outline: 3px solid #a6c4ff; outline-offset: 2px; }
.custom-check svg { stroke-width: 2.6; }
.biometric-button { width: 56px; height: 56px; display: block; flex: 0 0 56px; margin: 48px auto 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.biometric-button svg { width: 56px; height: 56px; fill: none; stroke: #191919; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.biometric-button .face-disc { fill: #c9dcff; stroke: none; }
.biometric-button .face-dot { fill: #191919; stroke: none; }
.biometric-button .face-smile { fill: none; stroke-width: 2.8; }
.form-error { margin: -15px 0 -12px; color: #b42318; font-size: 13px; }
.login-footer { width: 100%; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; background: #fff; font-size: 16px; line-height: 22px; }
.login-footer a { color: var(--green); font-weight: 700; }
.login-footer span { color: #999; }

.dashboard-page { --page: #f4f4f4; }
.dashboard-content { width: min(100%, 1080px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr); align-items: start; gap: 22px 28px; }
.loan-summary { grid-column: 1; position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; padding: 8px 18px 20px; border-radius: 24px; background: #f7f7f7; text-align: center; }
.limit-gauge { width: min(100%, 310px); height: 148px; margin: 0 auto -3px; }
.limit-gauge svg { width: 100%; height: 100%; overflow: visible; }
.limit-gauge path { fill: none; stroke-width: 23; stroke-linecap: round; }
.gauge-track { stroke: #d3d3d3; }
.gauge-value { stroke: #999; stroke-dasharray: 31 410; }
.account-status { margin: -2px 0 4px; color: #777; font-size: 17px; font-weight: 600; }
.available-amount { margin: 0; color: #8e8e8e; font-size: 38px; line-height: 1.2; font-weight: 600; }
.available-amount u { color: #171717; }
.used-limit { margin: 10px 0 0; color: #858585; font-size: 19px; }
.disburse-button { grid-column: 1; width: 100%; min-height: 54px; margin-top: -3px; }
.due-card { grid-column: 2; min-height: 174px; padding: 20px 22px; border-radius: 24px; background: #fff; }
.due-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.due-card-top > strong { font-size: 25px; font-weight: 600; }
.due-action { min-width: 116px; min-height: 49px; padding: 0 20px; border-radius: 15px; font-size: 17px; }
.due-card-bottom { margin-top: 16px; }
.status-chip { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 10px; border-radius: 20px; color: #182c42; background: #dceaff; font-size: 14px; }
.status-chip--paid { color: #20743d; background: #e6f7eb; }
.loan-summary--paid .account-status { color: #20743d; }
.loan-summary--paid .gauge-value { stroke: #24a85b; stroke-dasharray: 314 314; }
.disburse-button:disabled { opacity: .65; cursor: default; }
.paid-payment-title { margin-top: 28px; font-size: 24px; }
.paid-payment-description { color: #78847c; font-size: 16px; line-height: 24px; }
.paid-history-link { width: 100%; margin-top: 16px; padding: 10px; font-size: 16px; }
.transaction-payment-label { color: #20743d; font-size: 12px; line-height: 18px; }
.complete-loan-info { display: grid; gap: 12px; max-width: 360px; margin: 24px auto 0; padding: 20px; border-radius: 18px; background: #fff; font-size: 14px; }
.complete-loan-info div { display: flex; justify-content: space-between; gap: 12px; }
.complete-loan-info dt { color: #78847c; }
.complete-loan-info dd { margin: 0; font-weight: 600; }
.repayment-schedule-content { width: min(100%, 820px); margin: 0 auto; padding-bottom: 50px; }
.repayment-schedule-content h2 { margin: 24px 0 10px; font-size: 28px; }
.schedule-account { margin: 0 0 20px; color: #78847c; font-size: 14px; }
.schedule-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; padding: 20px; border-radius: 20px; background: #fff; }
.schedule-summary div { display: grid; gap: 8px; }
.schedule-summary span { color: #78847c; font-size: 13px; }
.schedule-summary strong { font-size: 18px; }
.schedule-list { display: grid; gap: 12px; }
.schedule-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px; border-radius: 18px; background: #fff; }
.schedule-row > div { display: grid; align-content: start; gap: 7px; font-size: 14px; }
.schedule-row > div:last-child { justify-items: end; }
.schedule-row > div > span:not(.status-chip), .schedule-row small { color: #78847c; font-size: 12px; }
.schedule-row .status-chip { font-size: 12px; }
.due-card-bottom p { margin: 7px 0 0; color: #333; font-size: 16px; line-height: 1.45; }
.due-card-bottom strong { font-weight: 600; }
.dashboard-links { grid-column: 2; display: grid; gap: 15px; }
.dashboard-link { min-height: 70px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; align-items: center; gap: 12px; padding: 0 18px; border-radius: 20px; background: #fff; font-size: 18px; }
.greeting-pill strong, .dashboard-link strong { font-weight: 600; }
.dashboard-link > svg { color: #1b1b1b; }
.link-icon { position: relative; display: grid; place-items: center; }
.limit-expiry { grid-column: 2; display: flex; align-items: center; gap: 6px; margin: 1px 0 0; color: #898989; font-size: 16px; }
.limit-expiry span { flex: 0 0 22px; color: #bafc17; }

.complete-page { --page: #f3f3f3; }
.complete-page .portal-main { min-height: 100vh; }
.complete-state { width: min(100%, 820px); margin: 0 auto; padding: 18vh 20px 40px; text-align: center; }
.complete-state h2 { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 700; }
.complete-state p { margin: 12px 0 30px; color: var(--soft-ink); font-size: 20px; }
.complete-illustration { width: min(100%, 440px); height: auto; margin: 0 auto; }

.transactions-page { --page: #efefef; }
.transaction-content { width: min(100%, 940px); margin: 0 auto; }
.transaction-tabs { width: min(100%, 560px); min-height: 50px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5px; margin: 0 auto 30px; padding: 4px; border-radius: 28px; background: #dedee2; }
.transaction-tabs a { min-height: 42px; display: grid; place-items: center; border-radius: 24px; font-size: 17px; }
.transaction-tabs a.is-active { background: #fff; font-weight: 700; box-shadow: 0 1px 2px #00000010; }
.transaction-note { display: flex; align-items: center; gap: 8px; margin: 0 0 26px; color: #83878a; font-size: 16px; }
.transaction-note-icon { width: 18px; height: 20px; display: grid; place-items: center; flex: 0 0 18px; color: #bafc17; }
.transactions-page--payment .transaction-month + .transaction-month { margin-top: 28px; }
.month-heading { margin: 24px 14px 12px; color: #85898c; font-size: 16px; font-weight: 500; }
.transaction-list { display: grid; gap: 16px; }
.transaction-row { position: relative; min-height: 98px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 24px; background: #fff; box-shadow: 0 3px 12px #26323808; }
.transaction-row-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.transaction-row-link:focus-visible { outline: 3px solid #a6c4ff; outline-offset: 3px; }
.settlement-amount-link { position: relative; z-index: 2; }
.transaction-method { width: 36px; height: 36px; display: grid; place-items: center; }
.bank-method { color: #191919; }
.momo-method { border-radius: 7px; color: #fff; background: #bd1687; text-align: center; font-size: 12px; font-weight: 700; line-height: .82; }
.momo-method b { font-size: 11px; }
.momo-logo { width: 42px; height: 42px; display: block; border-radius: 8px; object-fit: contain; }
.transaction-description { display: grid; gap: 5px; }
.transaction-description time { color: #999; font-size: 17px; }
.transaction-description strong { font-size: 19px; font-weight: 600; }
.transaction-description .transaction-amount { color: #171717; font-size: 23px; font-weight: 500; }
.transaction-description .payment-amount { font-weight: 600; }
.transaction-status { display: flex; align-items: center; gap: 7px; color: #252525; font-size: 18px; line-height: 1.15; }
.transaction-success, .success-check { position: relative; width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 17px; border: 1.5px solid #171717; border-radius: 50%; color: #171717; background: #fff; }
.transaction-success::before, .success-check::before { position: absolute; inset: 3px; border-radius: 50%; background: #e2ffae; content: ""; }
.transaction-success svg, .success-check svg { position: relative; width: 11px; height: 11px; stroke-width: 2.7; }
.transaction-arrow { justify-self: end; }
.empty-list { padding: 38px 20px; color: #74797c; text-align: center; }
.filter-button { position: fixed; z-index: 5; bottom: calc(54px + env(safe-area-inset-bottom)); left: calc(50% + 119px); min-width: 90px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 999px; color: #fff; background: #171717; font-size: 17px; cursor: pointer; transform: translateX(-50%); }
.filter-button svg { flex: 0 0 auto; }

.transaction-detail-page { --page: #efefef; }
.transaction-detail-content { width: min(100%, 820px); margin: 0 auto; padding-bottom: 105px; }
.detail-page-title { margin: 30px 0 25px; font-size: 35px; line-height: 1.1; font-weight: 600; }
.detail-status-card { min-height: 84px; display: grid; align-content: center; gap: 6px; margin-bottom: 18px; padding: 15px 22px; border-radius: 22px; background: #fff; }
.detail-status-card strong { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.detail-status-card time { color: #85898c; font-size: 17px; }
.loan-detail-card { padding: 24px 22px 22px; border-radius: 24px; background: #fff; }
.loan-facts { display: grid; gap: 18px; margin: 0; }
.loan-facts div { min-width: 0; }
.loan-facts dt { margin-bottom: 4px; color: var(--soft-ink); font-size: 16px; }
.loan-facts dd { margin: 0; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.loan-facts .installment-value { font-size: 23px; font-weight: 600; }
.fact-divider { height: 1px; margin: 20px 0; background: repeating-linear-gradient(90deg, #d6d8da 0 6px, transparent 6px 12px); }
.compact-facts { gap: 15px; }
.contract-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; background: transparent; text-align: left; font-size: 18px; cursor: pointer; }
.contract-note { display: grid; grid-template-columns: 24px 1fr; gap: 6px; margin: 14px 0 0; color: #85898c; font-size: 15px; line-height: 1.4; }
.contract-note-icon { color: #bafc17; }
.bank-account-card { min-height: 100px; display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 22px; border-radius: 23px; background: #fff; }
.bank-account-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 15px; color: #1b2834; background: #f3f4f5; }
.bank-account-card p { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.schedule-heading { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 28px 0 16px; color: var(--ink); font-size: 20px; text-decoration: none; }
.schedule-heading span { color: #191919; }
.schedule-heading svg { stroke: #191919; }
.sticky-action { position: fixed; z-index: 4; right: 0; bottom: 0; left: 238px; display: flex; justify-content: center; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #f1f1f200, #f1f1f2 25%); }
.sticky-action .primary-button { width: min(100%, 820px); min-height: 58px; }
.settlement-content { padding-right: 4px; padding-left: 4px; }
.settlement-intro { margin: -12px 0 28px; color: var(--soft-ink); font-size: 17px; line-height: 24px; }
.settlement-card, .settlement-total-card { padding: 20px; border-radius: 24px; background: #fff; }
.settlement-facts { gap: 14px; }
.settlement-total-card { margin-top: 16px; }
.settlement-total-card .settlement-total { font-size: 25px; line-height: 32px; font-weight: 700; }
.settlement-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; margin: 18px 0 0; color: #808080; font-size: 15px; line-height: 18px; }
.settlement-page .primary-button:disabled { opacity: .5; cursor: default; }

html.has-open-dialog, html.page-scroll-locked { overflow: hidden; }
.page-scroll-locked body { position: fixed; top: var(--scroll-lock-top, 0px); right: 0; left: 0; width: 100%; padding-right: var(--scroll-lock-gutter, 0px); }
.payment-sheet, .payment-modal { color: var(--ink); border: 0; font-family: var(--default-font); }
.payment-sheet::backdrop, .payment-modal::backdrop { background: #00000040; }
.payment-sheet[open] { animation: payment-sheet-in .32s cubic-bezier(.22, 1, .36, 1) both; }
.payment-sheet[open].is-closing { animation: payment-sheet-out .24s cubic-bezier(.4, 0, .8, .3) both; }
.payment-modal[open] { animation: payment-modal-in .26s cubic-bezier(.22, 1, .36, 1) both; }
.payment-modal[open].is-closing { animation: payment-modal-out .2s ease-in both; }
.payment-sheet[open]::backdrop, .payment-modal[open]::backdrop { animation: payment-backdrop-in .26s ease-out both; }
.payment-sheet[open].is-closing::backdrop, .payment-modal[open].is-closing::backdrop { animation: payment-backdrop-out .24s ease-in both; }
@keyframes payment-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes payment-sheet-out { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes payment-modal-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes payment-modal-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(16px); } }
@keyframes payment-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes payment-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.payment-sheet { position: fixed; inset: var(--viewport-top, 0px) 0 max(0px, calc(100dvh - var(--viewport-height, 100dvh) - var(--viewport-top, 0px))); width: min(100%, 560px); max-width: 100%; height: min(820px, calc(var(--viewport-height, 100dvh) - 40px)); max-height: calc(var(--viewport-height, 100dvh) - 40px); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 32px; background: #efefef; }
.payment-sheet-header { position: sticky; z-index: 1; top: 0; min-height: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; padding: 12px 24px; background: #efefef; }
.payment-sheet-header h2 { margin: 0 0 0 28px; text-align: center; font-size: 20px; line-height: 28px; font-weight: 600; }
.dialog-close { width: 28px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; color: #171717; background: transparent; cursor: pointer; }
.dialog-close svg { stroke-width: 2.2; }
.payment-sheet-content { padding: 8px 24px 40px; }
.payment-amount-card { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; border-radius: 24px; background: #fff; }
.payment-amount-card strong { font-size: 28px; line-height: 36px; font-weight: 700; }
.payment-copy { position: relative; width: 32px; height: 36px; display: grid; place-items: center; flex: 0 0 32px; padding: 0; border: 0; color: #171717; background: transparent; cursor: pointer; }
.payment-copy--accent::before { position: absolute; top: 15px; left: 8px; width: 12px; height: 15px; border-radius: 1px; background: var(--lime); content: ""; }
.payment-copy svg { position: relative; }
.payment-instruction { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; margin: 18px 0 48px; color: #808080; font-size: 15px; line-height: 18px; }
.payment-section-title { margin: 0 0 24px; font-size: 28px; line-height: 36px; font-weight: 700; }
.payment-bank { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 8px; }
.payment-method-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #fff; }
.payment-bank-details { min-width: 0; }
.payment-bank-details h4 { margin: 0 0 4px; font-size: 17px; line-height: 23px; font-weight: 700; }
.payment-bank-name, .payment-holder { margin: 0; font-size: 17px; line-height: 23px; overflow-wrap: anywhere; }
.payment-bank-logo { width: 148px; max-width: 100%; height: auto; display: block; object-fit: contain; }
.payment-account-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 18px; }
.payment-account-row strong { font-size: 18px; line-height: 24px; overflow-wrap: anywhere; }
.payment-qr-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; padding: 6px 13px; border: 1px solid #171717; border-radius: 12px; color: #171717; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.payment-momo { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: start; gap: 8px; margin-top: 26px; padding: 16px 0 0; border: 0; border-top: 1px solid #d2d2d2; color: #171717; background: transparent; text-align: left; cursor: pointer; }
.payment-method-icon img { width: 28px; height: 28px; border-radius: 3px; object-fit: contain; }
.payment-momo-description { display: grid; gap: 4px; font-size: 17px; line-height: 22px; }
.payment-momo-description strong { font-size: 18px; line-height: 24px; }
.payment-external-icon { align-self: center; }
.payment-modal { position: fixed; inset: var(--viewport-top, 0px) 0 max(0px, calc(100dvh - var(--viewport-height, 100dvh) - var(--viewport-top, 0px))); width: min(380px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(var(--viewport-height, 100dvh) - 40px); margin: auto; padding: 20px; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; background: #fff; }
.payment-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-modal h2 { margin: 0; font-size: 20px; line-height: 26px; }
.qr-bank-name { margin: 12px 0 8px; }
.qr-bank-name .payment-bank-logo { width: 132px; margin: 0 auto; }
.qr-holder { margin: 0; text-align: center; font-size: 14px; line-height: 20px; }
.qr-amount { display: block; margin: 12px 0 0; text-align: center; font-size: 24px; }
.payment-qr-image { min-height: 160px; display: grid; place-items: center; margin: 14px auto; color: #808080; text-align: center; }
.payment-qr-image img { width: 100%; max-width: 288px; height: auto; display: block; }
.payment-qr-image [hidden] { display: none; }
.qr-error { font-size: 14px; line-height: 20px; }
.qr-error a { color: var(--green); text-decoration: underline; }
.transfer-reference { margin-top: 16px; padding: 12px; border: 1px solid #dfe5d7; border-left: 3px solid #b6ed32; border-radius: 14px; background: #f7faf2; }
.transfer-reference-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; color: #59644f; font-size: 12px; line-height: 18px; }
.transfer-reference-copy { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border: 0; border-radius: 8px; color: #171717; background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.transfer-reference-value { margin: 8px 0 0; color: #171717; font-size: 15px; line-height: 23px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }
.dialog-feedback { position: sticky; z-index: 3; bottom: 16px; width: fit-content; max-width: calc(100% - 32px); height: 0; margin: 0 auto; overflow: hidden; border-radius: 12px; color: #fff; background: #202020; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; }
.dialog-feedback.is-visible { height: auto; margin-top: 12px; padding: 10px 14px; opacity: 1; }
.clipboard-input { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.maintenance-modal { text-align: center; }
.maintenance-modal > img { display: block; margin: 4px auto 16px; border-radius: 8px; }
.maintenance-modal p { margin: 12px 0 24px; color: #808080; font-size: 15px; line-height: 22px; }
.maintenance-modal .primary-button { width: 100%; font-size: 16px; }
.disbursement-notice { width: min(400px, calc(100% - 54px)); padding: 26px 20px 24px; text-align: center; }
.disbursement-notice::backdrop { background: #00000055; }
.disbursement-warning { width: 56px; height: 56px; display: block; margin: 0 auto 20px; }
.disbursement-notice h2 { font-size: 20px; line-height: 26px; font-weight: 600; }
.disbursement-notice p { margin: 10px 0 26px; font-size: 16.5px; line-height: 20px; }
.disbursement-notice .primary-button { width: 100%; min-height: 50px; font-size: 18px; font-weight: 700; }
.installment-payment-page { --page: #f4f4f4; }
.repayment-content { width: min(100%, 820px); margin: 0 auto; padding-bottom: 60px; }
.payment-due-card { min-height: 126px; padding: 18px 20px 16px; border-radius: 24px; }
.payment-due-card .due-card-bottom { margin-top: 6px; }
.repayment-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; color: #808080; font-size: 15px; line-height: 18px; }
.repayment-exact-note { margin: 18px 0 48px; }
.repayment-methods-title { margin: 0 0 24px; font-size: 28px; line-height: 36px; font-weight: 700; }
.repayment-method { width: 100%; min-height: 48px; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 8px; padding: 0; border: 0; color: #171717; background: transparent; text-align: left; cursor: pointer; }
.repayment-method + .repayment-method { margin-top: 16px; padding-top: 16px; border-top: 1px solid #d2d2d2; }
.repayment-method-description { display: grid; gap: 4px; font-size: 17px; line-height: 22px; }
.repayment-method-description strong { font-size: 18px; line-height: 24px; font-weight: 700; }
.repayment-method:first-child .repayment-method-description > span { font-size: 15.5px; }
.repayment-holiday-note { margin: 20px 0 0; }
.repayment-guide-button { min-height: 44px; max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 24px auto 0; padding: 10px 14px; border: 0; border-radius: 12px; color: #171717; background: #f8ffdf; font-size: 17px; line-height: 24px; cursor: pointer; }
.repayment-guide-button > svg { flex: 0 0 24px; }
.repayment-guide-button strong { color: #24a85b; font-weight: 700; }
.repayment-guide-modal ol { display: grid; gap: 12px; margin: 22px 0 24px; padding-left: 20px; color: #5d6368; font-size: 15px; line-height: 22px; }
.repayment-guide-modal strong { color: #171717; overflow-wrap: anywhere; }
.repayment-guide-modal .primary-button { width: 100%; font-size: 16px; }

.settings-page { --page: #fdfdfd; background: linear-gradient(180deg, #c6ffdd 0, #e7ffcf 110px, #fdfdfd 215px) no-repeat; background-color: #fdfdfd; }
.settings-content { width: min(100%, 820px); margin: 0 auto; padding: 0 0 80px; }
.settings-title { margin: 0 0 32px; font-size: 36px; line-height: 44px; font-weight: 700; }
.settings-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-shortcuts button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; padding: 0; border: 0; color: #171717; background: transparent; text-align: center; font-size: 16px; line-height: 18px; cursor: pointer; }
.settings-shortcuts button + button::before { position: absolute; top: 20px; left: 0; width: 2px; height: 24px; background: #d3d3d3; content: ""; }
.settings-options { margin-top: 28px; }
.settings-option { width: 100%; min-height: 64px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 24px; align-items: center; gap: 20px; padding: 0 4px; border: 0; color: #171717; background: transparent; text-align: left; font-size: 17px; line-height: 24px; cursor: pointer; }
.settings-option-icon { display: grid; place-items: center; }
.settings-option > svg { justify-self: end; stroke-width: 2.2; }
.settings-contract-note { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px; margin: 4px 4px 28px; color: #808080; font-size: 15px; line-height: 18px; }
.settings-footer-options { padding-top: 12px; border-top: 4px solid #eee; }
.settings-footer-options form { margin: 0; }
.settings-footer-option { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0; border: 0; color: #171717; background: transparent; text-align: left; font-size: 17px; line-height: 24px; cursor: pointer; }
.settings-language-value { display: inline-flex; align-items: center; gap: 6px; }
.settings-language-value .country-flag { width: 17px; height: 17px; flex-basis: 17px; margin: 0; }
.settings-version { margin: 18px 0 0; color: #999; text-align: center; font-size: 15px; line-height: 22px; }
.settings-info-modal > p { margin: 20px 0 6px; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.settings-info-modal > dl { margin-top: 20px; }
.settings-info-value { min-height: 70px; display: flex; align-items: center; justify-content: center; margin: 20px 0 28px; padding: 14px 20px; border-radius: 18px; color: #a5a5a5; background: #f1f1f1; font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; }
.settings-info-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.settings-info-actions--single { grid-template-columns: 1fr; }
.settings-info-actions .primary-button, .settings-outline-button { min-height: 58px; border-radius: 18px; font-size: 18px; font-weight: 700; }
.settings-outline-button { border: 2px solid #171717; color: #171717; background: #fff; cursor: pointer; }
.settings-maintenance-message { margin: 22px 0 28px !important; color: #6d7a72; text-align: center; }
.settings-flow-sheet { background: #fff; }
.settings-flow-header { min-height: 58px; display: grid; grid-template-columns: 44px 1fr; align-items: center; padding: 10px 24px; }
.settings-flow-header .dialog-close { width: 44px; height: 44px; display: grid; place-items: center; }
.settings-flow-content { padding: 22px 24px 40px; }
.settings-flow-content h2 { margin: 0 0 10px; font-size: 32px; line-height: 40px; font-weight: 700; }
.settings-flow-content > p { margin: 0 0 26px; color: #5d707b; font-size: 17px; line-height: 24px; }
.settings-flow-input { min-height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: 14px; background: #f1f1f1; }
.settings-flow-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; }
.settings-flow-input svg { flex: 0 0 24px; }
.settings-forgot { display: block; margin: 20px 0 0; color: #24a85b; font-size: 17px; font-weight: 700; }
.settings-flow-submit { width: 100%; margin-top: 64px; min-height: 58px; border-radius: 18px; font-size: 18px; font-weight: 700; }
.settings-flow-value { min-height: 94px; display: grid; place-items: center; margin: 18px 0 28px; color: #5d707b; background: #f1f1f1; font-size: 28px; font-weight: 500; }
.settings-flow-help { display: grid; grid-template-columns: 24px 1fr; gap: 8px; color: #808080 !important; font-size: 15px !important; line-height: 20px !important; }
.biometric-sheet { background: #fff; }
.biometric-sheet > .mobile-toolbar { display: grid; }
.biometric-content { padding: 12px 24px 60px; }
.biometric-content h2 { margin: 10px 0 12px; font-size: 32px; line-height: 40px; }
.biometric-content > p { margin: 0 0 34px; color: #5d707b; font-size: 17px; line-height: 24px; }
.biometric-toggle { min-height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #f1f1f1; font-size: 17px; }
.biometric-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.biometric-toggle i { position: relative; width: 64px; height: 36px; border-radius: 999px; background: #bfc4c1; }
.biometric-toggle i::after { position: absolute; top: 3px; left: 3px; width: 30px; height: 30px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s ease; }
.biometric-toggle input:checked + i { background: #38c960; }
.biometric-toggle input:checked + i::after { transform: translateX(28px); }
.biometric-illustration { display: grid; place-items: center; min-height: 450px; color: #c7ff31; }
.biometric-art { width: min(100%, 360px); height: auto; display: block; }
.language-sheet { background: #fff; }
.language-sheet-header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid #d3d3d3; }
.language-sheet-header h2 { margin: 0; font-size: 28px; font-weight: 700; }
.language-options { display: grid; gap: 20px; padding: 22px 24px 36px; }
.language-option { min-height: 92px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #d8d8d8; border-radius: 18px; background: #fff; text-align: left; cursor: pointer; }
.language-option.is-selected { border-color: #171717; }
.language-option .country-flag, .language-us-flag { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; border-radius: 50%; }
.language-us-flag { font-size: 32px; }
.language-option strong, .language-option small { display: block; }
.language-option strong { font-size: 18px; line-height: 24px; }
.language-option small { margin-top: 4px; color: #999; font-size: 16px; line-height: 22px; }
.language-check { width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #171717; border-radius: 50%; color: #171717; background: #c7ff31; }
.language-option:not(.is-selected) .language-check { display: none; }
.account-delete-content { padding: 8px 24px 32px; }
.account-delete-intro { margin: 0 0 22px; color: #5d6368; font-size: 15px; line-height: 23px; }
.account-delete-content h3 { margin: 0 0 14px; font-size: 20px; line-height: 28px; }
.account-delete-terms { display: grid; gap: 14px; margin: 0; padding-left: 22px; color: #5d6368; font-size: 14px; line-height: 22px; }
.account-delete-terms strong { color: #171717; }
.account-delete-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d2d2d2; }
.account-delete-consent { display: flex; align-items: flex-start; gap: 10px; color: #171717; font-size: 14px; line-height: 21px; cursor: pointer; }
.account-delete-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: #171717; }
.account-delete-password { display: grid; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 600; }
.account-delete-password input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #d2d2d2; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 400; }
.account-delete-actions { display: flex; gap: 10px; margin-top: 20px; }
.account-delete-actions .primary-button { flex: 1; min-height: 48px; padding: 12px; border-radius: 12px; font-size: 14px; }
.account-delete-actions .primary-button:disabled { opacity: .4; cursor: default; }
.account-delete-cancel { min-width: 65px; padding: 10px; border: 1px solid #d2d2d2; border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; }
.account-delete-errors { margin-bottom: 16px; padding: 12px; border-radius: 12px; color: #b42318; background: #fff0ed; font-size: 14px; line-height: 21px; }
.account-delete-errors p { margin: 0; }

.contract-viewer { background: #fff; }
.contract-viewer-header { position: sticky; z-index: 1; top: 0; min-height: 54px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid #c6c6d0; background: #fff; }
.contract-viewer-header h2 { margin: 0; text-align: center; font-size: 20px; line-height: 28px; font-weight: 600; }
.contract-viewer-body { padding: 8px 20px 34px; }
.contract-document { min-height: 696px; display: flex; align-items: center; justify-content: center; padding: 24px 10px; background: #808080; }
.contract-lock-content { width: 100%; text-align: center; }
.contract-lock-icon { width: 52px; height: 60px; display: block; margin: 0 auto 20px; color: #4f4f4f; }
.contract-locked-message { margin: 0; color: #080808; font-size: 15px; line-height: 22px; }
.contract-password-prompt { margin: 4px 0 22px; color: #080808; font-size: 13px; line-height: 20px; }
.contract-password-form { width: 76%; max-width: 300px; margin: 0 auto; }
.contract-password-form input { width: 100%; height: 27px; display: block; padding: 2px 9px; border: 0; border-radius: 5px; color: #171717; background: #fff; font-size: 16px; }
.contract-password-form input:focus-visible { outline: 2px solid #171717; outline-offset: 2px; }
.contract-unlock-button { min-height: 36px; margin-top: 12px; padding: 8px 16px; border: 0; border-radius: 8px; color: #171717; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.contract-viewer .dialog-feedback { bottom: 20px; }

.toast-message { position: fixed; z-index: 10; left: 50%; bottom: calc(25px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); padding: 11px 15px; border-radius: 12px; color: #fff; background: #202020; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; }
.toast-message.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) and (min-width: 641px) {
    .portal-frame { grid-template-columns: 205px minmax(0, 1fr); }
    .portal-main { padding: 64px 26px 50px; }
    .dashboard-content { grid-template-columns: 1fr; }
    .loan-summary, .disburse-button, .due-card, .dashboard-links, .limit-expiry { grid-column: 1; }
    .filter-button { left: calc(50% + 102.5px); }
    .sticky-action { left: 205px; }
}

@media (max-width: 640px), (max-width: 1024px) and (hover: none) and (pointer: coarse) {
    html, body { min-height: 100%; background: var(--page); }
    body { min-height: 100svh; }
    .portal-frame { display: block; min-height: calc(100svh - var(--app-top-space)); }
    .desktop-sidebar, .desktop-page-title { display: none; }
    .portal-main { min-height: calc(100svh - var(--app-top-space)); padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left); }
    .auth-main { min-height: calc(100svh - var(--app-top-space)); }
    .mobile-top-space { height: var(--app-top-space); display: block; background: inherit; }
    .mobile-page-head { display: flex; align-items: center; justify-content: space-between; height: 44px; margin: 17px 16px 8px; }
    .greeting-pill { min-width: 146px; height: 44px; display: flex; align-items: center; gap: 8px; padding: 4px 12px; border: 0; border-radius: 27px; color: var(--ink); background: #fff; font: inherit; text-align: left; cursor: pointer; }
    .greeting-pill strong { font-size: 18px; font-weight: 700; }
    .avatar-figure { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; }
    .avatar-figure svg { width: 36px; height: 36px; stroke-width: 1.2; }
    .head-actions { display: flex; gap: 12px; }
    .round-action { position: relative; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
    .round-action svg { width: 25px; height: 25px; }
    .dashboard-page .head-actions .round-action { width: 44px; height: 44px; }
    .dashboard-page .head-actions .round-action svg { width: 28px; height: 28px; }
    .has-notice::after { position: absolute; top: 6px; right: 7px; width: 9px; height: 9px; border: 1px solid #fff; border-radius: 50%; background: #ffce27; content: ""; }
    .dashboard-content { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0 24px 64px; }
    .loan-summary { grid-column: 1; min-height: 0; margin: 0 -12px; padding: 0; border-radius: 0; background: transparent; }
    .limit-gauge { width: 240px; height: 132px; flex: 0 0 132px; margin: 0 auto; }
    .limit-gauge path { stroke-width: 20; }
    .gauge-value { stroke-dasharray: 22 314; }
    .account-status { margin: -15px 0 8px; font-size: 15px; line-height: 22px; font-weight: 700; }
    .available-amount { font-size: 32px; line-height: 40px; font-weight: 700; }
    .available-amount u { font-size: 26px; }
    .used-limit { margin-top: 6px; font-size: 17px; line-height: 24px; }
    .disburse-button { grid-column: 1; width: 100%; min-height: 50px; margin: -18px 0 0; border-radius: 18px; font-size: 18px; font-weight: 700; }
    .due-card { grid-column: 1; min-height: 146px; padding: 20px 20px 18px; border-radius: 24px; }
    .due-card-top > strong { font-size: 30px; line-height: 36px; font-weight: 700; }
    .due-card-top > strong u { font-size: 24px; }
    .due-action { width: 116px; min-width: 116px; min-height: 50px; flex: 0 0 116px; padding: 0; border-radius: 16px; font-size: 18px; font-weight: 700; }
    .due-card-bottom { margin-top: 8px; }
    .status-chip { min-height: 24px; padding: 2px 8px; font-size: 15px; line-height: 20px; }
    .due-card-bottom p { margin-top: 4px; font-size: 15px; line-height: 22px; }
    .due-card-bottom strong { font-weight: 700; }
    .dashboard-links { grid-column: 1; gap: 24px; }
    .dashboard-link { min-height: 64px; grid-template-columns: 28px minmax(0, 1fr) 26px; gap: 12px; padding: 0 20px; border-radius: 20px; font-size: 18px; }
    .dashboard-link strong { font-weight: 700; }
    .dashboard-link > svg { stroke-width: 2.2; }
    .limit-expiry { grid-column: 1; margin: 0; font-size: 15px; line-height: 22px; }
    .mobile-toolbar { height: 58px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; margin: 10px 16px 0; }
    .mobile-toolbar h1 { margin: 0; text-align: center; font-size: 18px; font-weight: 600; }
    .mobile-toolbar .round-action { width: 48px; height: 48px; }
    .mobile-toolbar .back-action { justify-self: start; }
    .mobile-toolbar .close-action { justify-self: end; }
    .toolbar-spacer { width: 44px; height: 44px; }
    .repayment-toolbar { margin-bottom: 16px; }
    .repayment-toolbar .round-action { width: 44px; height: 44px; border: 1px solid #fff; background: #fafafa; box-shadow: 0 14px 26px #26323814; }
    .repayment-toolbar .round-action svg { width: 28px; height: 28px; stroke-width: 2.2; }
    .repayment-content { width: 100%; padding: 0 24px 70px; }
    .repayment-schedule-content { padding: 0 20px 50px; }
    .payment-due-card { min-height: 126px; padding: 18px 20px 16px; }
    .payment-due-card .due-card-top > strong u { line-height: 1; }
    .complete-page .portal-main { min-height: calc(100svh - var(--app-top-space)); }
    .complete-page .mobile-toolbar .round-action { width: 44px; height: 44px; border: 1px solid #fff; background: #fafafa; box-shadow: 0 14px 26px #26323814; }
    .complete-page .mobile-toolbar .round-action svg { width: 28px; height: 28px; stroke-width: 2.2; }
    .complete-state { padding: clamp(145px, 23vh, 200px) 20px 30px; }
    .complete-state h2 { font-size: 32px; }
    .complete-state p { margin: 6px 0 24px; font-size: 15px; line-height: 22px; }
    .complete-illustration { width: min(100%, 320px); }
    .transaction-toolbar { margin-bottom: 23px; }
    .transaction-toolbar h1 { font-size: 18px; line-height: 1.25; font-weight: 700; }
    .transaction-toolbar .back-action { width: 44px; height: 44px; border: 1px solid #fff; background: #fafafa; box-shadow: 0 14px 26px #26323814; }
    .transaction-toolbar .back-action svg { width: 28px; height: 28px; stroke-width: 2.2; }
    .transaction-content { width: 100%; padding: 0 20px calc(110px + env(safe-area-inset-bottom)); }
    .transaction-tabs { width: calc(100% - 8px); min-height: 40px; gap: 4px; margin: 0 auto 28px; padding: 2px; }
    .transaction-tabs a { min-height: 36px; font-size: 17px; }
    .transaction-note { margin: 0 0 26px; font-size: 16px; line-height: 1.4; }
    .month-heading { margin: 0 12px 12px; font-size: 16px; }
    .transaction-list { gap: 15px; }
    .transaction-row { min-height: 96px; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 12px; padding: 16px 20px; border-radius: 24px; }
    .transaction-row--disbursement { min-height: 110px; grid-template-columns: minmax(0, 1fr) 24px; align-items: start; padding: 16px; border-radius: 22px; }
    .transaction-row--disbursement .transaction-method { display: none; }
    .transaction-row--disbursement .transaction-description { grid-column: 1; }
    .transaction-method { width: 48px; height: 48px; }
    .momo-logo { width: 48px; height: 48px; border-radius: 8px; }
    .transaction-description { gap: 6px; }
    .transaction-description time { font-size: 15px; line-height: 1.3; }
    .transaction-description strong { font-size: 20px; }
    .transaction-description .transaction-amount { font-size: 22px; line-height: 1.2; }
    .transaction-status { gap: 6px; font-size: 17px; line-height: 1.2; font-weight: 400; }
    .transaction-arrow { width: 24px; height: 26px; display: grid; place-items: center; }
    .transaction-arrow svg { width: 28px; height: 28px; stroke-width: 2.2; }
    .filter-button { left: 50%; min-width: 74px; height: 36px; gap: 7px; padding: 0 12px; font-size: 16px; }
    .filter-button svg { width: 20px; height: 20px; stroke-width: 2.2; }
    .transactions-page--payment .transaction-note { margin-bottom: 24px; color: #808080; font-size: clamp(12px, 3.8vw, 15px); line-height: 22px; }
    .transactions-page--payment .month-heading { margin: 0 12px 10px; color: #808080; font-size: 15px; line-height: 20px; font-weight: 400; }
    .transaction-row--payment { min-height: 84px; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 8px; padding: 20px 20px 16px; border-radius: 22px; }
    .transaction-row--payment .transaction-method { width: 24px; height: 24px; background: transparent; }
    .transaction-row--payment .transaction-method svg { width: 24px; height: 24px; }
    .transaction-row--payment .momo-logo { width: 20px; height: 20px; border-radius: 3px; }
    .transaction-row--payment .transaction-description { gap: 2px; }
    .transaction-row--payment .transaction-description time { color: #555; font-size: 17px; line-height: 23px; }
    .transaction-row--payment .payment-amount { font-size: 17px; line-height: 23px; font-weight: 700; }
    .detail-toolbar { position: sticky; z-index: 6; top: calc(var(--app-top-space) + 10px); }
    .detail-toolbar::before { position: absolute; z-index: -1; inset: calc(-1 * (var(--app-top-space) + 10px)) -16px -8px; background: var(--page); opacity: 0; pointer-events: none; content: ""; }
    .detail-toolbar-title { text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; opacity: 0; }
    .detail-toolbar.is-scrolled::before, .detail-toolbar.is-scrolled .detail-toolbar-title { opacity: 1; }
    .detail-toolbar .round-action { width: 44px; height: 44px; border: 1px solid #fff; background: #fafafa; box-shadow: 0 14px 26px #26323814; }
    .detail-toolbar .round-action svg { width: 28px; height: 28px; stroke-width: 2.2; }
    .settings-page .mobile-top-space { background: transparent; }
    .settings-content { width: 100%; padding: 0 24px 80px; }
    .settings-title { margin: 10px -8px 32px; font-size: 32px; line-height: 1.2; }
    .settings-shortcuts { margin-top: 0; }
    .settings-toolbar .round-action { background: #edffda; border-color: #e9ffdb; }
    .settings-toolbar::before { bottom: -30px; background: linear-gradient(180deg, #c6ffdde6 0, #e7ffcfe6 60%, #fdfdfde6 100%); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
    .settings-footer-options { margin: 0 -24px; padding: 12px 24px 0; }
    .settings-info-modal { top: auto; right: 0; bottom: 0; left: 0; width: min(560px, 100%); max-width: 100%; max-height: min(52svh, 480px); margin: 0 auto; padding: 28px 24px calc(24px + env(safe-area-inset-bottom)); border-radius: 34px 34px 0 0; }
    .settings-info-modal .payment-modal-header h2 { font-size: 30px; line-height: 38px; font-weight: 700; }
    .settings-info-modal .payment-modal-header { margin-bottom: 2px; }
    .settings-info-value { min-height: 78px; margin: 18px 0 26px; border-radius: 18px; font-size: 23px; }
    .settings-info-actions .primary-button, .settings-outline-button { min-height: 60px; border-radius: 18px; font-size: 18px; }
    .settings-maintenance-message { font-size: 16px !important; }
    .settings-flow-sheet, .biometric-sheet, .language-sheet { top: auto; right: 0; bottom: 0; left: 0; width: min(560px, 100%); max-width: 100%; max-height: min(94svh, 760px); margin: 0 auto; border-radius: 34px 34px 0 0; }
    .settings-flow-content { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
    .biometric-sheet .mobile-toolbar { margin-top: 0; }
    .biometric-sheet .biometric-content { padding-top: 12px; }
    .biometric-sheet .biometric-content h2 { margin-top: 8px; font-size: 32px; line-height: 40px; }
    .biometric-sheet .biometric-content > p { font-size: 17px; line-height: 24px; margin-bottom: 32px; }
    .biometric-sheet .biometric-illustration { min-height: 450px; margin-top: 12px; }
    .language-options { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
    .transaction-detail-content { width: 100%; padding: 0 20px 160px; }
    .detail-page-title { margin: 10px -4px 28px; font-size: 32px; line-height: 1.2; font-weight: 700; }
    .detail-status-card { min-height: 84px; gap: 3px; margin-bottom: 16px; padding: 16px 20px; border-radius: 22px; }
    .detail-status-card strong { gap: 5px; font-size: 18px; line-height: 24px; font-weight: 700; }
    .detail-status-card time { color: #808080; font-size: 17px; line-height: 23px; }
    .loan-detail-card { padding: 20px 20px 40px; border-radius: 24px; }
    .loan-facts { gap: 12px; }
    .loan-facts dt { margin-bottom: 0; font-size: 17px; line-height: 24px; }
    .loan-facts dd { font-size: 17px; line-height: 24px; }
    .loan-facts .installment-value { font-size: 24px; line-height: 32px; font-weight: 700; }
    .compact-facts { gap: 6px; }
    .compact-facts dt, .compact-facts dd { line-height: 23px; }
    .contract-row { font-size: 17px; line-height: 24px; }
    .contract-row svg { width: 26px; height: 26px; stroke-width: 2.2; }
    .contract-note { grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 10px; color: #808080; font-size: 15px; line-height: 18px; }
    .bank-account-card { min-height: 112px; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; margin-top: 16px; padding: 20px; border-radius: 24px; }
    .bank-account-icon { width: 48px; height: 48px; border-radius: 15px; color: #171717; background: #f3f3f3; }
    .bank-account-card p { font-size: 17px; line-height: 23px; }
    .schedule-heading { gap: 7px; margin: 26px 0 14px; font-size: 18px; line-height: 26px; font-weight: 700; }
    .schedule-heading svg { width: 22px; height: 22px; }
    .sticky-action { left: 0; padding: 16px max(24px, env(safe-area-inset-right)) calc(50px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); background: var(--page); }
    .sticky-action .primary-button { width: 100%; min-height: 56px; border-radius: 18px; font-size: 18px; font-weight: 700; }
    .settlement-content { padding: 0 24px 150px; }
    .settlement-page .detail-page-title { margin: 10px -8px 12px; }
    .settlement-intro { margin: 0 -4px 22px; font-size: 15px; line-height: 24px; }
    .settlement-facts { gap: 12px; }
    .settlement-total-card { padding-top: 17px; padding-bottom: 17px; }
    .settlement-total-card .loan-facts dt { margin-bottom: 2px; }
    .payment-sheet { --sheet-top: max(calc(var(--app-top-space) + 17px), var(--viewport-top, 0px)); top: var(--sheet-top); right: env(safe-area-inset-right); bottom: auto; left: env(safe-area-inset-left); width: min(560px, calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right))); height: calc(var(--viewport-height, 100dvh) + var(--viewport-top, 0px) - var(--sheet-top)); max-height: calc(var(--viewport-height, 100dvh) + var(--viewport-top, 0px) - var(--sheet-top)); margin: 0 auto; border-radius: 40px 40px 0 0; }
    .payment-sheet-content { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
    .contract-document { min-height: max(420px, calc(100svh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); }
    .contract-viewer-body { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
    .toast-message { bottom: calc(90px + env(safe-area-inset-bottom)); }
    .login-page { background: #fff; }
    .login-page .mobile-top-space { background: #fff; }
    .login-screen { min-height: calc(100svh - var(--app-top-space)); padding-top: clamp(104px, calc(21.13svh - var(--app-top-space)), 168px); }
    .account-delete-password input { font-size: 16px; }
}

.is-standalone { --app-top-space: env(safe-area-inset-top); }
@media (display-mode: standalone) { :root { --app-top-space: env(safe-area-inset-top); } }
@supports not (overflow: clip) { html { overflow-x: hidden; } }

@media (max-width: 370px) {
    .dashboard-content { padding-right: 16px; padding-left: 16px; }
    .mobile-page-head { margin-right: 13px; margin-left: 13px; }
    .head-actions { gap: 7px; }
    .round-action { width: 42px; height: 42px; }
    .due-card { padding-right: 16px; padding-left: 16px; }
    .due-card-bottom p { font-size: 14px; }
    .transaction-content { padding-right: 16px; padding-left: 16px; }
    .transaction-row { padding-right: 13px; padding-left: 13px; }
    .login-footer { font-size: 15px; }
}

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