/* =========================================================================================
   Loan Portal — independent stylesheet (Views/Shared/_LoanLayout.cshtml and the vendor simulators).
   It does NOT use the company website's theme (cms-site.css, legacy-site.css, --pk-* variables): every colour,
   radius and font comes from the --lp-* tokens below. Bootstrap 5 (vendor library) supplies the grid and form
   controls; everything visual is defined here.
   ========================================================================================= */
:root {
    --lp-ink: #0f1b33;
    --lp-text: #24324b;
    --lp-muted: #64748b;
    --lp-line: #e2e8f0;
    --lp-bg: #f3f6fb;
    --lp-surface: #ffffff;
    --lp-surface-2: #f8fafd;
    --lp-primary: #1d4ed8;
    --lp-primary-2: #2563eb;
    --lp-primary-soft: #e8efff;
    --lp-accent: #f97316;
    --lp-success: #15803d;
    --lp-success-soft: #e8f8ee;
    --lp-warning: #b45309;
    --lp-warning-soft: #fff4e5;
    --lp-danger: #b91c1c;
    --lp-danger-soft: #fdecec;
    --lp-header: #0b1a36;
    --lp-gradient: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    --lp-gradient-hero: linear-gradient(135deg, #0b1a36 0%, #1d3b8f 60%, #2f56c9 100%);
    --lp-radius: .75rem;
    --lp-radius-lg: 1.1rem;
    --lp-shadow: 0 6px 24px rgba(15, 27, 51, .07);
    --lp-focus: 0 0 0 .2rem rgba(37, 99, 235, .25);
    --lp-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --lp-header-h: 64px;
}

/* ---------- document ---------- */
html, body.lp-body { background: var(--lp-bg); }
body.lp-body { font-family: var(--lp-font); color: var(--lp-text); font-size: 15px; line-height: 1.55; margin: 0; min-height: 100vh; }
.lp-body a { color: var(--lp-primary); }
.lp-body h1, .lp-body h2, .lp-body h3, .lp-body h4, .lp-body h5, .lp-body h6 { color: var(--lp-ink); font-family: var(--lp-font); }
.lp-body .form-control:focus, .lp-body .form-select:focus, .lp-body .form-check-input:focus { border-color: var(--lp-primary-2); box-shadow: var(--lp-focus); }
.lp-body .form-check-input:checked { background-color: var(--lp-primary); border-color: var(--lp-primary); }
[v-cloak] { display: none !important; }
.lp-skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 3000; }
.lp-skip:focus { left: 1rem; top: 1rem; }

/* boot screen shown until the Vue application has started (and if JavaScript is off) */
.lp-boot { min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--lp-muted); padding: 1rem; }
.lp-boot .lp-brand-mark { margin: 0 auto 1rem; }

/* ---------- shell: header ---------- */
.lp-app { min-height: 100vh; display: flex; flex-direction: column; }
.lp-main { flex: 1 0 auto; outline: none; }
.lp-header { position: sticky; top: 0; z-index: 1030; background: var(--lp-header); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.lp-header .lp-bar { height: var(--lp-header-h); display: flex; align-items: center; gap: 1rem; }
.lp-brand { display: flex; align-items: center; gap: .6rem; color: #fff !important; text-decoration: none; font-weight: 700; min-width: 0; }
.lp-brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--lp-gradient); display: grid; place-items: center; color: #fff; flex: none; }
.lp-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.lp-brand-text small { font-weight: 400; color: rgba(255, 255, 255, .65); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.lp-brand-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.lp-nav { display: none; align-items: center; gap: .15rem; margin-left: 1rem; }
.lp-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; padding: .45rem .75rem; border-radius: .55rem; font-size: .92rem; white-space: nowrap; }
.lp-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lp-nav a.active { color: #fff; background: rgba(255, 255, 255, .14); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.lp-icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff;
               display: grid; place-items: center; }
.lp-icon-btn:hover { background: rgba(255, 255, 255, .16); }
.lp-icon-btn .lp-dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--lp-accent);
                       font-size: .62rem; font-weight: 700; line-height: 16px; border: 2px solid var(--lp-header); }
.lp-user-btn { display: flex; align-items: center; gap: .5rem; border: 0; background: rgba(255, 255, 255, .08); color: #fff; padding: .3rem .7rem .3rem .3rem;
               border-radius: 99px; }
.lp-user-btn:hover { background: rgba(255, 255, 255, .16); }
.lp-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lp-accent); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.lp-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.lp-menu-wrap { position: relative; }
.lp-menu { position: absolute; right: 0; top: calc(100% + .5rem); width: 260px; background: var(--lp-surface); color: var(--lp-text); border-radius: var(--lp-radius);
           box-shadow: 0 12px 40px rgba(15, 27, 51, .2); border: 1px solid var(--lp-line); overflow: hidden; z-index: 1040; }
.lp-menu.wide { width: min(340px, calc(100vw - 2rem)); }
.lp-menu .lp-menu-head { padding: .85rem 1rem; border-bottom: 1px solid var(--lp-line); background: var(--lp-surface-2); }
.lp-menu a, .lp-menu button.lp-menu-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .6rem 1rem; color: var(--lp-text); text-decoration: none;
                                          border: 0; background: none; text-align: left; font-size: .92rem; }
.lp-menu a:hover, .lp-menu button.lp-menu-item:hover { background: var(--lp-primary-soft); }
.lp-menu .lp-note { padding: .65rem 1rem; border-bottom: 1px solid var(--lp-line); font-size: .85rem; }
.lp-menu .lp-note.unread { background: #f5f8ff; }
.lp-menu-scroll { max-height: 340px; overflow: auto; }
.lp-burger { display: grid; }
.lp-guest-links { display: none; gap: .5rem; }
.lp-guest-links a { color: #fff; text-decoration: none; padding: .45rem .9rem; border-radius: .55rem; font-size: .92rem; }
.lp-guest-links a.lp-outline { border: 1px solid rgba(255, 255, 255, .35); }
.lp-guest-links a.lp-solid { background: var(--lp-accent); }

/* mobile drawer */
.lp-drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 15, 30, .55); z-index: 1050; }
.lp-drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); background: var(--lp-surface); z-index: 1060; display: flex; flex-direction: column;
             box-shadow: 8px 0 30px rgba(0, 0, 0, .25); }
.lp-drawer-head { background: var(--lp-header); color: #fff; padding: 1rem; display: flex; align-items: center; justify-content: space-between; }
.lp-drawer nav { padding: .5rem; overflow: auto; flex: 1; }
.lp-drawer nav a, .lp-drawer nav button { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .7rem .8rem; border-radius: .6rem; color: var(--lp-text);
                                          text-decoration: none; border: 0; background: none; text-align: left; }
.lp-drawer nav a i, .lp-drawer nav button i { width: 20px; text-align: center; color: var(--lp-muted); }
.lp-drawer nav a.active { background: var(--lp-primary-soft); color: var(--lp-primary); font-weight: 600; }
.lp-drawer nav a.active i { color: var(--lp-primary); }
.lp-drawer .lp-drawer-sep { height: 1px; background: var(--lp-line); margin: .5rem .25rem; }

@media (min-width: 1200px) {
    .lp-nav { display: flex; }
    .lp-burger { display: none; }
}
@media (min-width: 768px) { .lp-user-name { display: inline; } }
@media (min-width: 576px) { .lp-guest-links { display: flex; } }

/* ---------- shell: footer ---------- */
.lp-footer { background: var(--lp-surface); border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: .82rem; padding: 1.25rem 0; margin-top: 2rem; }
.lp-footer a { color: var(--lp-muted); text-decoration: none; }
.lp-footer a:hover { color: var(--lp-primary); }

/* ---------- page scaffolding ---------- */
.la-page { padding-top: 1.5rem; padding-bottom: 2.5rem; color: var(--lp-text); }
.la-narrow { max-width: 820px; }
.lp-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.lp-page-head h1 { font-size: 1.55rem; font-weight: 700; margin: 0; }
.lp-page-head p { margin: .2rem 0 0; color: var(--lp-muted); }
.lp-crumbs { font-size: .82rem; color: var(--lp-muted); margin-bottom: .35rem; }
.lp-crumbs a { color: var(--lp-muted); text-decoration: none; }
.lp-section-title { font-size: 1.05rem; font-weight: 700; color: var(--lp-ink); margin: 0 0 .75rem; }

/* states */
.lp-state { text-align: center; padding: 2.5rem 1rem; color: var(--lp-muted); }
.lp-state i.lp-state-icon { font-size: 2rem; color: #a8b4c8; display: block; margin-bottom: .75rem; }
.lp-state h3 { font-size: 1.1rem; color: var(--lp-ink); }
.lp-skeleton { background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: lp-shimmer 1.2s infinite;
               border-radius: .5rem; height: 1rem; }
@keyframes lp-shimmer { to { background-position: -200% 0; } }
.lp-alert { border-radius: var(--lp-radius); padding: .8rem 1rem; display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; }
.lp-alert.info { background: var(--lp-primary-soft); color: #1e3a8a; }
.lp-alert.warn { background: var(--lp-warning-soft); color: #7c2d12; }
.lp-alert.error { background: var(--lp-danger-soft); color: #7f1d1d; }
.lp-alert.ok { background: var(--lp-success-soft); color: #14532d; }

/* KPI tiles */
.lp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .lp-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lp-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.lp-kpi { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: .9rem 1rem; display: flex; gap: .75rem;
          align-items: center; text-decoration: none; color: inherit; min-width: 0; }
a.lp-kpi:hover { border-color: #c7d4ee; box-shadow: var(--lp-shadow); }
.lp-kpi .lp-kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--lp-primary-soft); color: var(--lp-primary); flex: none; }
.lp-kpi .lp-kpi-icon.warn { background: var(--lp-warning-soft); color: var(--lp-warning); }
.lp-kpi .lp-kpi-icon.ok { background: var(--lp-success-soft); color: var(--lp-success); }
.lp-kpi .lp-kpi-icon.bad { background: var(--lp-danger-soft); color: var(--lp-danger); }
.lp-kpi .lp-kpi-value { font-size: 1.35rem; font-weight: 700; color: var(--lp-ink); line-height: 1.1; }
.lp-kpi .lp-kpi-label { font-size: .78rem; color: var(--lp-muted); }

/* welcome banner */
.lp-welcome { background: var(--lp-gradient-hero); color: #fff; border-radius: var(--lp-radius-lg); padding: 1.4rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem;
              align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.lp-welcome h1 { color: #fff; font-size: 1.45rem; margin: 0; }
.lp-welcome p { margin: .25rem 0 0; color: rgba(255, 255, 255, .78); }
.lp-welcome .lp-due { background: rgba(255, 255, 255, .1); border-radius: var(--lp-radius); padding: .75rem 1rem; min-width: 220px; }
.lp-welcome .lp-due small { color: rgba(255, 255, 255, .7); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.lp-welcome .lp-due b { font-size: 1.25rem; }

/* actions list */
.lp-action { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--lp-line); }
.lp-action:last-child { border-bottom: 0; }
.lp-action .lp-action-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--lp-warning-soft); color: var(--lp-warning); display: grid; place-items: center; flex: none; }

/* timeline */
.lp-timeline { list-style: none; margin: 0; padding: 0 0 0 1.25rem; position: relative; }
.lp-timeline::before { content: ""; position: absolute; left: .42rem; top: .4rem; bottom: .4rem; width: 2px; background: var(--lp-line); }
.lp-timeline li { position: relative; padding: 0 0 1rem .75rem; }
.lp-timeline li:last-child { padding-bottom: 0; }
.lp-timeline li::before { content: ""; position: absolute; left: -1.25rem; top: .3rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--lp-surface);
                          border: 3px solid var(--lp-primary); }
.lp-timeline li.milestone::before { border-color: var(--lp-success); }
.lp-timeline li.rejected::before { border-color: var(--lp-danger); }
.lp-timeline li.latest::before { background: var(--lp-primary); }
.lp-timeline .lp-tl-label { font-weight: 600; color: var(--lp-ink); }
.lp-timeline .lp-tl-date { font-size: .8rem; color: var(--lp-muted); }

/* responsive data list: a table on wide screens, cards on phones */
.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.lp-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--lp-muted); font-weight: 600; padding: .65rem .85rem;
               background: var(--lp-surface-2); border-bottom: 1px solid var(--lp-line); white-space: nowrap; }
.lp-table td { padding: .75rem .85rem; border-bottom: 1px solid var(--lp-line); vertical-align: middle; }
.lp-table tr:last-child td { border-bottom: 0; }
@media (max-width: 767.98px) {
    .lp-table.lp-stack thead { display: none; }
    .lp-table.lp-stack, .lp-table.lp-stack tbody, .lp-table.lp-stack tr, .lp-table.lp-stack td { display: block; width: 100%; }
    .lp-table.lp-stack tr { border-bottom: 1px solid var(--lp-line); padding: .6rem .25rem; }
    .lp-table.lp-stack tr:last-child { border-bottom: 0; }
    .lp-table.lp-stack td { border: 0; padding: .2rem .6rem; display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
    .lp-table.lp-stack td::before { content: attr(data-label); color: var(--lp-muted); font-size: .8rem; text-align: left; }
    .lp-table.lp-stack td.lp-full { display: block; text-align: left; }
    .lp-table.lp-stack td.lp-full::before { content: none; }
}

/* tabs (segmented) */
.lp-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--lp-line); margin-bottom: 1rem; }
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tabs a, .lp-tabs button { border: 0; background: none; padding: .6rem .9rem; color: var(--lp-muted); text-decoration: none; white-space: nowrap;
                              border-bottom: 2px solid transparent; font-weight: 500; }
.lp-tabs a.active, .lp-tabs button.active { color: var(--lp-primary); border-bottom-color: var(--lp-primary); }

/* auth pages */
.lp-auth { min-height: calc(100vh - var(--lp-header-h)); display: grid; place-items: center; padding: 2rem 1rem; background:
           radial-gradient(1200px 400px at 10% -10%, rgba(37, 99, 235, .12), transparent), radial-gradient(800px 300px at 110% 110%, rgba(249, 115, 22, .10), transparent); }
.lp-auth-card { width: 100%; max-width: 440px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius-lg); box-shadow: var(--lp-shadow);
                padding: 1.75rem; }
.lp-auth-card h1 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .25rem; }
.lp-auth-card .lp-sub { color: var(--lp-muted); margin-bottom: 1.25rem; font-size: .92rem; }
.lp-auth-foot { text-align: center; font-size: .88rem; color: var(--lp-muted); margin-top: 1.1rem; }
.lp-pw { position: relative; }
.lp-pw .form-control { padding-right: 2.75rem; }
.lp-pw button { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--lp-muted); padding: .35rem .5rem; }
.lp-strength { height: 5px; border-radius: 99px; background: var(--lp-line); overflow: hidden; margin-top: .4rem; }
.lp-strength span { display: block; height: 100%; transition: width .2s; }
.lp-rules { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .8rem; color: var(--lp-muted); }
.lp-rules li.ok { color: var(--lp-success); }
.lp-rules li i { width: 1rem; }

/* ---------- components shared with the application wizard and the loan screens ---------- */
.la-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: .6rem; padding: .62rem 1.3rem; font-weight: 600;
          color: #fff; background: var(--lp-gradient); text-decoration: none; cursor: pointer; line-height: 1.3; }
.la-btn:hover { color: #fff; filter: brightness(1.07); }
.la-btn:focus-visible { outline: none; box-shadow: var(--lp-focus); }
.la-btn:disabled, .la-btn.disabled { opacity: .55; pointer-events: none; }
.la-btn-navy { background: var(--lp-header); }
.la-btn-light { background: var(--lp-primary-soft); color: var(--lp-primary); }
.la-btn-light:hover { color: var(--lp-primary); }
.la-btn-ghost { background: transparent; color: var(--lp-primary); border: 1px solid #c7d4ee; }
.la-btn-ghost:hover { color: var(--lp-primary); background: var(--lp-primary-soft); }
.la-btn-sm { padding: .35rem .8rem; font-size: .85rem; }
.la-btn-block { width: 100%; }

.la-card { background: var(--lp-surface); border-radius: var(--lp-radius-lg); border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); padding: 1.35rem; }
.la-card + .la-card { margin-top: 1rem; }
.la-card h2 { font-size: 1.2rem; font-weight: 700; color: var(--lp-ink); }
.la-muted { color: var(--lp-muted); font-size: .9rem; }
.la-help { color: var(--lp-muted); font-size: .8rem; }
.la-error { color: var(--lp-danger); font-size: .8rem; margin-top: .25rem; }
.lp-body .form-control.is-invalid, .lp-body .form-select.is-invalid { border-color: var(--lp-danger); }
.la-details { background: var(--lp-surface-2); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1rem 1.2rem; }
.la-kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .4rem 1rem; margin: 0; font-size: .92rem; }
.la-kv dt { color: var(--lp-muted); font-weight: 400; }
.la-kv dd { margin: 0; font-weight: 500; word-break: break-word; }
.la-consents { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1rem; background: var(--lp-surface-2); display: grid; gap: .75rem; font-size: .85rem; }

/* hero (landing) */
.la-hero { background: var(--lp-gradient-hero); color: #fff; border-radius: 0 0 2rem 2rem; padding: 3rem 0 4.5rem; }
.la-hero h1 { color: #fff; font-weight: 700; }
.la-hero p { color: rgba(255, 255, 255, .85); }
.la-badge-line { display: inline-block; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); border-radius: 99px; padding: .3rem .9rem;
                 font-size: .72rem; letter-spacing: .06em; margin-bottom: 1rem; }
.la-lift { margin-top: -3rem; position: relative; }

/* wizard stepper (Contact … Selfie) */
.la-stepper { display: flex; justify-content: space-between; position: relative; margin: 0 0 .5rem; }
.la-stepper::before { content: ""; position: absolute; top: 18px; left: 6%; right: 6%; height: 2px; background: var(--lp-line); }
.la-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .75rem; color: #8a96ab; position: relative; text-align: center; }
.la-step .num { width: 36px; height: 36px; border-radius: 50%; background: #e5e9f2; display: grid; place-items: center; font-weight: 700; z-index: 1;
                border: 3px solid var(--lp-bg); color: var(--lp-muted); }
.la-step.done { color: var(--lp-ink); }
.la-step.done .num { background: var(--lp-header); color: #fff; cursor: pointer; }
.la-step.current { color: var(--lp-primary); font-weight: 600; }
.la-step.current .num { background: var(--lp-primary); color: #fff; }
@media (max-width: 575.98px) { .la-step span:not(.num) { display: none; } .la-step .num { width: 30px; height: 30px; } .la-stepper::before { top: 15px; } }
.la-step-caption { text-align: center; color: var(--lp-muted); margin-bottom: 1.25rem; }
.la-step-caption b { color: var(--lp-primary); }
.la-progress { height: 4px; background: #e5e9f2; border-radius: 99px; overflow: hidden; margin-bottom: 1.5rem; }
.la-progress span { display: block; height: 100%; background: var(--lp-gradient); transition: width .3s; }

/* OTP boxes */
.la-otp { display: flex; gap: .5rem; justify-content: center; }
.la-otp input { width: 46px; height: 54px; text-align: center; font-size: 1.35rem; font-weight: 700; border: 1.5px solid #d3dae6; border-radius: .6rem; min-width: 0; }
.la-otp input:focus { outline: none; border-color: var(--lp-primary-2); box-shadow: var(--lp-focus); }
@media (max-width: 380px) { .la-otp { gap: .3rem; } .la-otp input { width: 40px; height: 48px; } }

/* overlay ("Analyzing Your Banking Information") */
.la-overlay { position: fixed; inset: 0; background: rgba(11, 26, 54, .94); color: #fff; display: grid; place-items: center; z-index: 2000; padding: 1rem; }
.la-overlay .box { max-width: 460px; text-align: center; }
.la-overlay h3 { color: #fff; }
.la-spinner { width: 64px; height: 64px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .2); border-top-color: var(--lp-accent); animation: la-spin 1s linear infinite;
              margin: 0 auto 1.2rem; }
.lp-spin-sm { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: la-spin .8s linear infinite;
              vertical-align: -.15em; }
@keyframes la-spin { to { transform: rotate(360deg); } }
.la-bar { height: 8px; background: rgba(255, 255, 255, .2); border-radius: 99px; overflow: hidden; }
.la-bar span { display: block; height: 100%; background: var(--lp-accent); transition: width .4s; }
.la-card .la-bar, .lp-progress-line { background: #e5e9f2; }

/* camera */
.la-camera { position: relative; border-radius: var(--lp-radius-lg); overflow: hidden; background: #0e1440; aspect-ratio: 4 / 3; }
.la-camera video, .la-camera img { width: 100%; height: 100%; object-fit: cover; display: block; }
.la-camera .ring { position: absolute; inset: 12% 24%; border: 3px dashed rgba(249, 115, 22, .9); border-radius: 50%; pointer-events: none; }

/* current loan */
.la-hero-card { background: var(--lp-gradient-hero); color: #fff; border-radius: var(--lp-radius-lg); padding: 1.5rem; }
.la-hero-card .label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.la-hero-card .big { font-size: 2rem; font-weight: 700; }
.la-hero-card .inner { background: rgba(255, 255, 255, .1); border-radius: var(--lp-radius); padding: 1rem; display: flex; justify-content: space-between; align-items: center;
                       gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.la-hero-card .yellow { color: #fcd34d; }
.la-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
@media (min-width: 768px) { .la-metrics { grid-template-columns: repeat(4, 1fr); } }
.la-metrics b { display: block; font-size: 1.1rem; }
.la-stat { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1rem; height: 100%; }
.la-stat .label { color: var(--lp-muted); font-size: .8rem; }
.la-stat .value { font-size: 1.2rem; font-weight: 700; color: var(--lp-ink); }
.la-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
@media (min-width: 768px) { .la-tiles { grid-template-columns: repeat(4, 1fr); } }
.la-tile { background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1rem; text-align: center; font-weight: 600; color: var(--lp-ink);
           text-decoration: none; cursor: pointer; }
.la-tile i { display: block; font-size: 1.4rem; margin-bottom: .35rem; color: var(--lp-primary); }
.la-tile.primary { background: var(--lp-gradient); color: #fff; border: 0; }
.la-tile.primary i { color: #fff; }
.la-tracker { display: flex; justify-content: space-between; position: relative; margin: .5rem 0 1.25rem; }
.la-tracker::before { content: ""; position: absolute; top: 15px; left: 8%; right: 8%; height: 2px; background: var(--lp-line); }
.la-tracker .t { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .78rem; position: relative; }
.la-tracker .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e5e9f2; color: var(--lp-muted); font-weight: 700; z-index: 1;
                 border: 3px solid #fff; }
.la-tracker .done .c { background: var(--lp-success); color: #fff; }
.la-tracker .current .c { background: var(--lp-primary); color: #fff; }
.la-step-card { border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 1rem; display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start;
                flex-wrap: wrap; }
.la-step-card + .la-step-card { margin-top: .75rem; }
.la-ref { display: flex; justify-content: space-between; align-items: center; gap: .5rem; border: 1px solid var(--lp-line); border-radius: .7rem; padding: .6rem .9rem; margin-top: .5rem; }
.la-pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 99px; padding: .15rem .7rem; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.la-pill.orange { background: var(--lp-warning-soft); color: var(--lp-warning); }
.la-pill.green { background: var(--lp-success-soft); color: var(--lp-success); }
.la-pill.red { background: var(--lp-danger-soft); color: var(--lp-danger); }
.la-pill.navy { background: var(--lp-header); color: #fff; }
.la-pill.blue { background: var(--lp-primary-soft); color: var(--lp-primary); }
.la-pill.grey { background: #eef0f4; color: #4b5563; }
.la-doc-line { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--lp-line); gap: .5rem; flex-wrap: wrap; }
.la-doc-line:last-child { border-bottom: 0; }
.la-slider { width: 100%; accent-color: var(--lp-primary); }
.la-segmented { display: inline-flex; flex-wrap: wrap; gap: .25rem; background: #e7ecf5; border-radius: .7rem; padding: .25rem; }
.la-segmented button { border: 0; background: none; padding: .4rem .9rem; border-radius: .55rem; font-weight: 500; color: var(--lp-text); }
.la-segmented button.active { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.la-table th { background: var(--lp-header); color: #fff; font-weight: 600; white-space: nowrap; }

/* modal (Vue-driven, no Bootstrap JS needed) */
.lp-body .modal.d-block { background: transparent; overflow-y: auto; }
.lp-body .modal-content { border-radius: var(--lp-radius-lg); border: 0; }

/* printable document */
.la-doc { background: #fff; max-width: 860px; margin: 1.5rem auto; padding: 2.2rem 2.5rem; border-radius: .8rem; box-shadow: var(--lp-shadow); font-size: 14px; }
.la-doc h1 { font-size: 1.35rem; text-align: center; margin-bottom: .2rem; color: var(--lp-ink); }
.la-doc .sub { text-align: center; color: var(--lp-muted); margin-bottom: 1.2rem; }
.la-doc table.grid { width: 100%; border-collapse: collapse; margin: .6rem 0 1.1rem; }
.la-doc table.grid th, .la-doc table.grid td { border: 1px solid #d5d9e6; padding: .45rem .65rem; vertical-align: top; text-align: left; }
.la-doc table.grid th { background: #f3f5fb; width: 42%; font-weight: 600; }
.la-doc .sign { display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.la-doc .sign div { flex: 1; min-width: 240px; border: 1px dashed #9aa3c7; border-radius: .6rem; padding: .8rem; font-size: 12px; }
@media (max-width: 600px) { .la-doc { padding: 1.2rem 1rem; margin: 0; border-radius: 0; } }
@media print {
    .lp-header, .lp-footer, .lp-drawer, .no-print, .lp-skip { display: none !important; }
    body.lp-body, .la-page { background: #fff; padding: 0; }
    .la-doc { box-shadow: none; margin: 0; max-width: none; }
}

/* vendor simulator pages (stand-ins for the vendors' own websites) */
.la-sim { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 1rem; }
.la-sim .card-box { width: 100%; max-width: 540px; }
.la-sim-ribbon { background: #fff7e6; color: #92400e; border: 1px dashed #f59e0b; border-radius: .6rem; padding: .5rem .8rem; font-size: .78rem; margin-bottom: .8rem; }
