.loan-page { padding-bottom: 12px; }
.loan-hero { padding: 20px; background: linear-gradient(125deg,#164ed5,#2475f3); color: #fff; border-radius: 12px; }
.loan-hero-top { display:flex; justify-content:space-between; align-items:center; font-size:17px; font-weight:700; }
.loan-hero-top button { color:#fff; font-size:11px; background:#ffffff20; border-radius:6px; padding:7px 10px; }
.loan-hero p { font-size:11px; opacity:.8; margin:8px 0 24px; }
.loan-hero > small { font-size:11px; opacity:.8; }
.loan-total strong { display:block; font-size:28px; margin:6px 0 18px; overflow-wrap:anywhere; }
.loan-total small { font-size:13px; font-weight:500; }
.loan-counts { display:flex; gap:24px; border-top:1px solid #ffffff30; padding-top:13px; font-size:11px; }
.loan-counts b { font-size:15px; margin-left:6px; }
.loan-steps { display:flex; justify-content:space-between; gap:5px; padding:18px 2px; font-size:11px; color:var(--muted); }
.loan-steps span { display:flex; gap:5px; align-items:center; }
.loan-steps i { width:20px; height:20px; display:grid; place-items:center; background:#e9effc; color:var(--blue); border-radius:50%; font-style:normal; flex-shrink:0; }
.loan-box { background:#fff; border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:12px; }
.loan-box h2,.loan-section-title h2 { font-size:16px; margin:0 0 16px; }
.loan-plan-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
.loan-plan-meta span { color:var(--muted); font-size:11px; }
.loan-plan-meta b { display:block; color:var(--ink); font-size:19px; margin-top:5px; }
.loan-note { font-size:11px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.loan-presets { display:flex; gap:8px; margin:0 0 14px; }
.loan-presets button { flex:1; background:#f1f5fb; border:1px solid var(--line); color:var(--ink); padding:10px 4px; border-radius:6px; font-size:11px; }
.loan-cost { background:#f6f8fc; padding:5px 12px; border-radius:8px; margin:12px 0; }
.loan-line { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:10px 0; font-size:12px; }
.loan-line + .loan-line { border-top:1px solid #e8edf5; }
.loan-line > span { color:var(--muted); flex-shrink:0; }
.loan-line strong { text-align:right; font-weight:600; overflow-wrap:anywhere; min-width:0; }
.loan-section-title { display:flex; justify-content:space-between; align-items:center; margin:24px 0 12px; }
.loan-section-title h2 { margin:0; }
.loan-section-title > span { font-size:12px; color:var(--muted); }
.loan-filters { display:flex; gap:6px; margin-bottom:12px; overflow-x:auto; }
.loan-filters button { flex:1; white-space:nowrap; padding:10px 5px; border-radius:6px; color:var(--muted); font-size:12px; background:#edf0f5; }
.loan-filters button.active { background:#e9f0ff; color:var(--blue); font-weight:600; }
.loan-order-head { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:13px; }
.loan-order-head > b { overflow-wrap:anywhere; }
.loan-status { display:inline-block; flex-shrink:0; font-size:10px; padding:5px 7px; border-radius:4px; background:#f0f3f8; color:var(--muted); }
.loan-status.pending { color:#ac7413; background:#fff6df; }
.loan-status.approved { color:var(--blue); background:#edf3ff; }
.loan-status.overdue,.loan-status.rejected { color:var(--red); background:#fff0f2; }
.loan-status.repaid { color:var(--green); background:#eaf9f3; }
.loan-order-amount { font-size:22px; font-weight:700; margin:16px 0; }
.loan-order-data { display:grid; grid-template-columns:1fr 1fr; gap:12px; font-size:10px; color:var(--muted); }
.loan-order-data b { display:block; font-size:11px; line-height:1.5; color:var(--ink); margin-top:5px; }
.loan-order-actions { display:flex; gap:10px; margin-top:16px; }
.loan-order-actions button { flex:1; min-width:0; padding:10px; font-size:12px; }
.loan-empty { text-align:center; padding:28px 16px; color:var(--muted); font-size:12px; line-height:1.8; }
.loan-empty p { margin-bottom:0; }
.loan-dialog { position:fixed; inset:auto 0 0; margin:0 auto; width:min(100%,520px); max-width:100%; max-height:90vh; max-height:90dvh; border:0; border-radius:16px 16px 0 0; padding:0; color:var(--ink); background:#fff; overscroll-behavior:contain; }
.loan-dialog::backdrop { background:#071a3d70; }
.loan-dialog > header { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border-bottom:1px solid var(--line); padding:16px 20px; z-index:1; }
.loan-dialog h2 { margin:0; font-size:17px; }
.loan-dialog header button { width:32px; height:32px; border-radius:50%; font-size:23px; color:var(--muted); background:#f5f6f9; }
.loan-dialog-body { padding:4px 20px max(24px,env(safe-area-inset-bottom)); }
.loan-dialog h3 { font-size:14px; margin-top:22px; }
.loan-dialog .primary,.loan-dialog .soft-btn { margin-top:10px; }
.loan-dialog button:disabled,.loan-page button:disabled { opacity:.45; cursor:default; }
.loan-warning { background:#fff6e6; border-radius:6px; color:#9c691a; font-size:12px; line-height:1.8; padding:10px; }
.loan-warning button { color:var(--blue); }
.loan-timeline { display:grid; grid-template-columns:1fr 1fr; gap:18px 10px; margin:22px 0; }
.loan-timeline > div { display:flex; gap:8px; color:var(--muted); font-size:11px; }
.loan-timeline i { font-style:normal; width:22px; height:22px; border-radius:50%; background:#eff2f7; display:grid; place-items:center; flex-shrink:0; }
.loan-timeline .done i { color:var(--blue); background:#eaf1ff; }
.loan-timeline .done > span { color:var(--ink); }
.loan-timeline small { display:block; color:var(--muted); font-size:9px; margin-top:5px; }
.loan-payment { border-bottom:1px solid var(--line); padding:12px 0; font-size:12px; }
.loan-payment > small { display:block; margin-top:5px; color:var(--muted); }
.loan-payment p { font-size:10px; color:var(--muted); line-height:1.6; }
.loan-success { display:grid; place-items:center; width:54px; height:54px; margin:24px auto 18px; border-radius:50%; background:#e9f8f1; color:var(--green); font-size:28px; }
@media(max-width:360px) { .loan-box { padding:12px; } .loan-dialog-body { padding-left:14px; padding-right:14px; } .loan-status { font-size:9px; } .loan-line { gap:8px; font-size:11px; } }

.loan-product-picker { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:0; max-width:100%; padding:12px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font-size:13px; text-align:left; }
.loan-product-picker > span:first-child { min-width:0; overflow-wrap:anywhere; line-height:1.6; }
.loan-product-picker > span:last-child { flex-shrink:0; color:var(--muted); }
.loan-product-picker:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.loan-product-options { display:grid; gap:10px; padding-top:14px; }
.loan-product-option { display:block; width:100%; min-width:0; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fff; text-align:left; color:var(--ink); overflow-wrap:anywhere; }
.loan-product-option.selected { border-color:var(--blue); background:#f1f6ff; }
.loan-product-option > span:not(.loan-product-option-title),.loan-product-option small { display:block; color:var(--muted); font-size:11px; line-height:1.8; margin-top:5px; }
.loan-product-option-title { display:flex; align-items:flex-start; gap:12px; font-size:14px; }
.loan-product-option-title strong { flex:1; min-width:0; }
.loan-product-option-title i { font-style:normal; flex-shrink:0; color:var(--blue); }
