:root {
    --bg: #f4f6f3;
    --bg-strong: #eef2ea;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-muted: #f7faf7;
    --line: rgba(15, 23, 42, 0.09);
    --line-strong: rgba(15, 23, 42, 0.16);
    --text: #12211b;
    --text-soft: #51645d;
    --text-faint: #72837d;
    --brand: #0f766e;
    --brand-strong: #115e59;
    --brand-soft: #dff3ee;
    --accent: #d97706;
    --accent-soft: #fff2de;
    --success: #15803d;
    --success-soft: #e5f7ea;
    --danger: #c2410c;
    --danger-soft: #fdeee8;
    --shadow-lg: 0 24px 80px rgba(21, 40, 32, 0.10);
    --shadow-md: 0 18px 40px rgba(21, 40, 32, 0.08);
    --shadow-sm: 0 8px 24px rgba(21, 40, 32, 0.06);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --content-width: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Manrope", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    margin: 0;
}

p {
    margin: 0;
}

.site-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.site-background__orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.4;
}

.site-background__orb--one {
    width: 24rem;
    height: 24rem;
    background: rgba(15, 118, 110, 0.18);
    top: -8rem;
    right: -6rem;
}

.site-background__orb--two {
    width: 22rem;
    height: 22rem;
    background: rgba(217, 119, 6, 0.14);
    bottom: -6rem;
    left: -7rem;
}

.site-background__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(18, 33, 27, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 33, 27, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.6), transparent 78%);
}

.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(244, 246, 243, 0.8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar__right {
    margin-left: auto;
}

.topbar__menu {
    display: inline-flex;
}

.brand-lockup,
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-mark__badge,
.avatar-pill {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: white;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
}

.brand-mark__name {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
}

.brand-mark__sub {
    display: block;
    font-size: 0.76rem;
    color: var(--text-faint);
}

.guest-nav {
    display: none;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.guest-nav > a:not(.button) {
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 600;
}

.guest-nav > a:not(.button):hover {
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
}

.button,
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-outline,
.btn-upload,
.new-application-btn,
.start-application-btn,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.button:hover,
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
.btn-outline:hover,
.btn-upload:hover,
.new-application-btn:hover,
.start-application-btn:hover,
.filter-button:hover {
    transform: translateY(-1px);
}

.button--primary,
.btn-primary,
.btn-upload,
.new-application-btn,
.start-application-btn,
.filter-button {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.button--secondary,
.btn-secondary {
    background: linear-gradient(135deg, #1f2937, #334155);
    color: #fff;
}

.button--danger,
.btn-danger {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
}

.button--ghost,
.btn-outline,
.button--outline {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.button--block {
    width: 100%;
}

.button.is-submitting,
.btn.is-submitting,
.btn-primary.is-submitting,
.btn-secondary.is-submitting,
.btn-danger.is-submitting,
.btn-outline.is-submitting {
    opacity: 0.82;
    transform: none;
    pointer-events: none;
}

.button__spinner,
.submit-loader__spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: rgba(255, 255, 255, 0.96);
}

.icon-button {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.icon-button--ghost {
    background: transparent;
    box-shadow: none;
}

.notification-badge,
.nav-pill,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #b45309);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
}

.menu-dropdown {
    position: relative;
}

.menu-dropdown summary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0.45rem 0.55rem 0.45rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.menu-dropdown summary::-webkit-details-marker {
    display: none;
}

.menu-dropdown__meta {
    display: none;
}

.menu-dropdown__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.6rem);
    width: 13rem;
    padding: 0.55rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.menu-dropdown__panel a {
    display: block;
    padding: 0.85rem 0.9rem;
    border-radius: 0.9rem;
    color: var(--text-soft);
    font-weight: 600;
}

.menu-dropdown__panel a:hover {
    background: var(--surface-muted);
    color: var(--text);
}

.flash-stack {
    max-width: var(--content-width);
    width: calc(100% - 2.2rem);
    margin: 1rem auto 0;
    display: grid;
    gap: 0.8rem;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1rem 1rem 1.1rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash--success {
    border-color: rgba(21, 128, 61, 0.18);
    background: rgba(229, 247, 234, 0.92);
}

.flash--error {
    border-color: rgba(194, 65, 12, 0.18);
    background: rgba(253, 238, 232, 0.94);
}

.flash--dismiss {
    opacity: 0;
    transform: translateY(-8px);
}

.page-root {
    flex: 1;
    width: 100%;
}

.page-section,
.page-container,
.dashboard-container,
.loan-applications-container,
.document-container,
.upload-container,
.status-container,
.kyc-container,
.container {
    width: min(var(--content-width), calc(100% - 2rem));
    margin: 0 auto;
}

.page-section,
.page-container {
    padding: 1.3rem 0 5.5rem;
}

.site-footer {
    width: min(var(--content-width), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 5.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    color: var(--text-faint);
    font-size: 0.92rem;
}

.site-footer strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(19rem, 84vw);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(-102%);
    transition: transform 0.3s ease;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(22px);
}

.app-sidebar.is-open {
    transform: translateX(0);
}

.app-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 17, 14, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    z-index: 35;
}

.app-sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.app-sidebar__close {
    margin-left: auto;
}

.app-nav {
    display: grid;
    gap: 0.4rem;
}

.app-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1.1rem;
    color: var(--text-soft);
    font-weight: 700;
}

.app-nav__item i {
    width: 1.1rem;
    text-align: center;
}

.app-nav__item.is-active,
.app-nav__item:hover {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.09));
    color: var(--text);
}

.app-sidebar__footer {
    margin-top: auto;
    display: grid;
    gap: 0.8rem;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 1.2rem;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.profile-summary__name,
.profile-summary__meta {
    display: block;
}

.profile-summary__name {
    font-weight: 800;
}

.profile-summary__meta {
    font-size: 0.82rem;
    color: var(--text-faint);
}

.mobile-dock {
    position: fixed;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.75rem;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.5rem;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.mobile-dock a {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.4rem;
    border-radius: 1rem;
    color: var(--text-faint);
    font-size: 0.72rem;
    font-weight: 700;
}

.mobile-dock a.is-active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.10));
    color: var(--brand-strong);
}

.panel,
.card,
.balance-card,
.filter-card,
.loan-card,
.document-card,
.verification-status,
.progress-section,
.benefits-section,
.timeline-section,
.next-steps-section,
.upload-tips,
.applications-table-container,
.no-applications,
.no-loans,
.document-table,
.empty-state,
.status-header,
.kyc-header,
.verification-status,
.account-summary-card,
.stats-card,
.summary-card,
.hero-card,
.content-card,
.surface-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
}

.page-hero,
.status-header,
.kyc-header,
.gradient-banner,
.gradient-bg,
.hero-banner {
    position: relative;
    overflow: hidden;
    padding: 1.45rem;
    background: linear-gradient(145deg, #0f766e, #0f172a);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.page-hero::after,
.status-header::after,
.kyc-header::after,
.gradient-banner::after,
.gradient-bg::after,
.hero-banner::after {
    content: "";
    position: absolute;
    inset: auto -20% -35% auto;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.34), transparent 64%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-hero h1,
.status-header h1,
.kyc-header h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 0.95;
}

.page-hero p,
.status-header p,
.kyc-header p {
    margin-top: 1rem;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.hero-actions,
.action-row,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.stats-grid,
.metric-grid,
.summary-grid,
.loans-grid,
.document-grid,
.tips-grid,
.benefits-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid,
.metric-grid,
.summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.loans-grid,
.document-grid,
.tips-grid,
.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.stat-card,
.metric-card,
.summary-item,
.info-tile {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    box-shadow: var(--shadow-sm);
}

.stat-card h3,
.metric-card h3,
.summary-item h3,
.info-tile h3 {
    font-size: 0.88rem;
    color: var(--text-faint);
    font-family: "Manrope", sans-serif;
    letter-spacing: 0;
    margin-bottom: 0.55rem;
}

.stat-card p,
.metric-card p,
.summary-item p,
.info-tile p {
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
}

.status-badge,
.loan-status,
.verification-level,
.pill,
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.82rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-approved,
.loan-status-completed,
.status-verified,
.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.status-pending,
.loan-status-active,
.status-partial,
.status-warning {
    background: var(--accent-soft);
    color: var(--accent);
}

.status-rejected,
.loan-status-defaulted,
.status-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.status-not-uploaded,
.badge-neutral {
    background: rgba(81, 100, 93, 0.1);
    color: var(--text-soft);
}

.data-table,
.applications-table,
.document-table table,
table {
    width: 100%;
    border-collapse: collapse;
}

.table-card,
.applications-table-container,
.document-table {
    overflow: hidden;
}

table th,
table td,
.applications-table th,
.applications-table td,
.table-header th,
.table-row td {
    padding: 0.95rem 1rem;
    text-align: left;
    vertical-align: top;
}

table thead,
.table-header {
    background: rgba(15, 118, 110, 0.06);
}

table th,
.applications-table th,
.table-header th {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

table tbody tr,
.table-row {
    border-top: 1px solid var(--line);
}

table tbody tr:hover,
.table-row:hover {
    background: rgba(255, 255, 255, 0.5);
}

.field {
    display: grid;
    gap: 0.55rem;
}

.field__label {
    font-weight: 800;
    font-size: 0.94rem;
    color: var(--text);
}

.field__help {
    font-size: 0.84rem;
    color: var(--text-faint);
}

.field__errors {
    display: grid;
    gap: 0.35rem;
    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 700;
}

form {
    display: grid;
    gap: 1rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.form-control,
.glass-input,
.filter-select {
    width: 100%;
    min-height: 3.2rem;
    padding: 0.88rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.glass-input:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.10);
    transform: translateY(-1px);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
}

.checkbox-row input {
    margin-top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
}

.checkbox-row strong {
    display: block;
    margin-bottom: 0.2rem;
}

.checkbox-row small {
    color: var(--text-faint);
}

.auth-shell,
.auth-layout {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.3rem 0 5.4rem;
    display: grid;
    gap: 1rem;
}

.auth-panel {
    padding: 1.4rem;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.auth-panel.page-hero {
    background: linear-gradient(145deg, #0f766e, #0f172a);
    color: white;
    border: none;
}

.auth-panel.page-hero h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 0.95;
}

.auth-panel.page-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .info-list__item,
.page-hero .feature-list li,
.page-hero .steps-list li {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .info-list__item i,
.page-hero .feature-list i,
.page-hero .steps-list i {
    color: rgba(255, 255, 255, 0.92);
}

.auth-panel h1 {
    font-size: clamp(2rem, 6vw, 3rem);
}

.auth-panel p {
    margin-top: 0.9rem;
    color: var(--text-soft);
}

.auth-panel--loading-shell {
    position: relative;
    overflow: hidden;
}

.register-flow__continue {
    margin-top: 1.35rem;
}

.register-flow__details {
    scroll-margin-top: 1rem;
}

.auth-panel__content {
    position: relative;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-loading-state {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.9rem;
    padding: 1.5rem;
    text-align: center;
    background: rgba(244, 246, 243, 0.94);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 2;
}

.auth-loading-state__spinner {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    border: 4px solid rgba(15, 118, 110, 0.14);
    border-top-color: var(--brand);
    animation: auth-spin 0.8s linear infinite;
}

.auth-loading-state h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--text);
}

.auth-loading-state p {
    margin: 0;
    max-width: 22rem;
    color: var(--text-soft);
}

.auth-panel--loading-shell.is-loading .auth-panel__content {
    opacity: 0.12;
    transform: scale(0.99);
    pointer-events: none;
    user-select: none;
}

.auth-panel--loading-shell.is-loading .auth-loading-state {
    opacity: 1;
    visibility: visible;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(9, 17, 14, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 90;
}

.submit-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.submit-loader__card {
    width: min(24rem, calc(100% - 1rem));
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.submit-loader__spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.95rem;
    border-width: 4px;
    border-color: rgba(15, 118, 110, 0.16);
    border-top-color: var(--brand);
    animation: submit-spin 0.75s linear infinite;
}

.button__spinner {
    animation: submit-spin 0.75s linear infinite;
}

.submit-loader__card h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    color: var(--text);
}

.submit-loader__card p {
    margin: 0.7rem 0 0;
    color: var(--text-soft);
}

.hero-stat-list,
.info-list,
.steps-list,
.feature-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.info-list__item,
.steps-list li,
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-soft);
}

.info-list__item i,
.steps-list i,
.feature-list i {
    color: var(--brand);
    margin-top: 0.15rem;
}

.empty-state,
.no-loans,
.no-applications {
    padding: 2rem 1.35rem;
    text-align: center;
}

.empty-state i,
.no-loans i,
.no-applications i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-faint);
}

.timeline,
.timeline-list {
    display: grid;
    gap: 1rem;
    position: relative;
}

.timeline-item,
.timeline-card {
    position: relative;
    padding-left: 1.3rem;
}

.timeline-item::before,
.timeline-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.timeline-item::after,
.timeline-card::after {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 1.25rem;
    bottom: -1rem;
    width: 2px;
    background: rgba(15, 118, 110, 0.18);
}

.timeline-item:last-child::after,
.timeline-card:last-child::after {
    display: none;
}

.section-title,
.dashboard-title,
.page-title {
    font-size: clamp(1.55rem, 4vw, 2.3rem);
    color: var(--text);
}

.section-subtitle,
.dashboard-subtitle {
    margin-top: 0.5rem;
    color: var(--text-soft);
}

.section-stack {
    display: grid;
    gap: 1.15rem;
}

.section-split {
    display: grid;
    gap: 1rem;
}

.two-column,
.dashboard-grid,
.content-grid {
    display: grid;
    gap: 1rem;
}

.two-column > :only-child,
.section-split > :only-child,
.dashboard-grid > :only-child,
.content-grid > :only-child,
.auth-layout > :only-child {
    grid-column: 1 / -1;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.panel-header,
.card-header,
.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.15rem 1.15rem 0;
}

.panel-body,
.card-body,
.section-body {
    padding: 1.15rem;
}

.key-value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 0.9rem;
}

.key-value {
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(244, 246, 243, 0.88);
    border: 1px solid rgba(18, 33, 27, 0.07);
}

.key-value span {
    display: block;
}

.key-value span:first-child {
    font-size: 0.8rem;
    color: var(--text-faint);
    margin-bottom: 0.3rem;
}

.key-value strong {
    font-size: 1.02rem;
    color: var(--text);
}
.key-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* force 2 columns on mobile */
    gap: 0.9rem;
}

/* Tablet */
@media (min-width: 140px) {
    .key-value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 640px) {
    .key-value-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Desktop */
@media (min-width: 1024px) {
    .key-value-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.progress-bar,
.progress-track,
.progress-bar-container {
    height: 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.progress-bar-fill,
.progress-value,
.progress-bar > div,
.progress-bar-container > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.stack-sm {
    display: grid;
    gap: 0.65rem;
}

.stack-md {
    display: grid;
    gap: 1rem;
}

.stack-lg {
    display: grid;
    gap: 1.4rem;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--accent);
}

@media (min-width: 700px) {
    .page-section,
    .page-container,
    .auth-shell,
    .auth-layout {
        padding-top: 1.8rem;
    }

    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .two-column,
    .section-split,
    .dashboard-grid,
    .content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .menu-dropdown__meta {
        display: block;
    }

    .panel-header,
    .card-header,
    .section-header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(24rem, 30rem);
        align-items: start;
    }

    .register-flow__continue {
        display: none;
    }
}

@media (min-width: 1100px) {
    .app-shell--with-sidebar {
        display: grid;
        grid-template-columns: 18.75rem minmax(0, 1fr);
    }

    .page-section,
    .page-container,
    .auth-shell,
    .auth-layout {
        padding-bottom: 2.4rem;
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
        box-shadow: none;
        z-index: 10;
    }

    .app-sidebar__close,
    .topbar__menu,
    .app-sidebar-overlay {
        display: none;
    }

    .topbar {
        padding: 1.05rem 1.5rem;
    }

    .guest-nav {
        display: inline-flex;
    }

    .mobile-dock {
        display: none;
    }

    .site-footer {
        padding-bottom: 1.4rem;
    }

    .pwa-install-banner {
        bottom: 1.5rem;
    }
}

@media (max-width: 1099px) {
    .guest-nav > a:not(.button) {
        display: none;
    }
}

@media (max-width: 899px) {
    .js .register-flow[data-mobile-flow-state="intro"] .page-hero {
        display: grid;
        align-content: center;
        min-height: min(34rem, calc(100dvh - 8rem));
    }

    .js .register-flow[data-mobile-flow-state="intro"] .register-flow__details {
        display: none;
    }

    .js .register-flow[data-mobile-flow-state="form"] .register-flow__continue {
        display: none;
    }
}

.pwa-install-banner[hidden] {
    display: none;
}

.pwa-install-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 6.25rem;
    z-index: 95;
    pointer-events: none;
}

.pwa-install-banner__card {
    pointer-events: auto;
    width: min(100%, 40rem);
    margin: 0 auto;
    padding: 1.1rem 1.1rem;
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.9rem;
    animation: pwa-install-rise 0.4s ease both;
}

.pwa-install-banner__title {
    margin: 0;
    font-size: 1.05rem;
}

.pwa-install-banner__subtitle {
    margin: 0.25rem 0 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.pwa-install-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

@keyframes pwa-install-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 720px) {
    .pwa-install-banner {
        bottom: 1.25rem;
    }

    .pwa-install-banner__card {
        padding: 1.15rem 1.25rem;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1.1rem;
    }

    .pwa-install-banner__actions {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.75rem;
    }
}
