/* Fundi Finance Company Ltd — Design System */
:root {
    --fundi-navy: #0B1F33;
    --fundi-navy-light: #132d47;
    --fundi-teal: #0E7C7B;
    --fundi-teal-dark: #0a6564;
    --fundi-sand: #F3F0E8;
    --fundi-sand-dark: #e8e4da;
    --fundi-ink: #14202B;
    --fundi-ink-muted: #4a5568;
    --fundi-success: #1F7A4C;
    --fundi-danger: #B42318;
    --fundi-warning: #B54708;
    --fundi-white: #ffffff;
    --fundi-border: #d4cfc4;
    --fundi-sidebar-width: 240px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --radius: 6px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06);
    --shadow-md: 0 4px 12px rgba(11, 31, 51, 0.08);
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--fundi-ink);
    background: var(--fundi-sand);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--fundi-navy);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

a {
    color: var(--fundi-teal);
    text-decoration: none;
}
a:hover { color: var(--fundi-teal-dark); text-decoration: underline; }

p { margin: 0 0 1rem; }

/* Layout — Admin Shell */
.fundi-admin {
    display: flex;
    min-height: 100vh;
}

.fundi-sidebar {
    width: var(--fundi-sidebar-width);
    background: var(--fundi-navy);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
}

.fundi-sidebar__brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fundi-sidebar__brand-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fundi-white);
    display: block;
    line-height: 1.3;
}

.fundi-sidebar__brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.25rem;
}

.fundi-nav {
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    flex: 1;
}

.fundi-nav__item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.fundi-nav__item a:hover,
.fundi-nav__item a.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--fundi-white);
    text-decoration: none;
}

.fundi-nav__item a.active {
    border-left-color: var(--fundi-teal);
    background: rgba(14, 124, 123, 0.15);
}

.fundi-nav__badge {
    margin-left: auto;
    background: var(--fundi-danger);
    color: var(--fundi-white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.25rem;
    text-align: center;
}

.fundi-main {
    flex: 1;
    margin-left: var(--fundi-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.fundi-topbar {
    background: var(--fundi-white);
    border-bottom: 1px solid var(--fundi-border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.fundi-topbar__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--fundi-navy);
    font-weight: 600;
}

.fundi-topbar__user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.fundi-topbar__name { font-weight: 600; color: var(--fundi-ink); }
.fundi-topbar__role {
    color: var(--fundi-ink-muted);
    font-size: 0.8rem;
}

.fundi-content {
    padding: 1.5rem;
    flex: 1;
}

/* Portal Shell */
.fundi-portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fundi-portal-header {
    background: var(--fundi-navy);
    color: var(--fundi-white);
    padding: 0 1.5rem;
}

.fundi-portal-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.fundi-portal-brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fundi-white);
}

.fundi-portal-brand span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fundi-portal-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fundi-portal-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
}

.fundi-portal-nav a:hover,
.fundi-portal-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fundi-white);
    text-decoration: none;
}

.fundi-portal-body {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Guest / Auth */
.fundi-guest {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--fundi-sand);
}

.fundi-guest__card {
    background: var(--fundi-white);
    border: 1px solid var(--fundi-border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.fundi-guest__logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.fundi-guest__logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--fundi-navy);
    font-weight: 600;
}

.fundi-guest__logo-sub {
    font-size: 0.8rem;
    color: var(--fundi-ink-muted);
    margin-top: 0.25rem;
}

/* Marketing Landing */
.fundi-landing {
    min-height: 100vh;
}

.fundi-hero {
    background: var(--fundi-navy);
    color: var(--fundi-white);
    padding: 4rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.fundi-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fundi-teal);
}

.fundi-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.fundi-hero__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fundi-teal);
    font-weight: 600;
    margin-bottom: 1rem;
}

.fundi-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--fundi-white);
    max-width: 640px;
    margin-bottom: 1rem;
}

.fundi-hero__lead {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.fundi-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fundi-landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.fundi-landing-nav__brand {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fundi-white);
}

.fundi-landing-nav__links {
    display: flex;
    gap: 0.5rem;
}

.fundi-products {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.fundi-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.fundi-product-item h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.fundi-product-item p {
    font-size: 0.875rem;
    color: var(--fundi-ink-muted);
    margin: 0;
}

.fundi-landing-footer {
    background: var(--fundi-navy);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}

/* Stats / KPI */
.fundi-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fundi-stat {
    background: var(--fundi-white);
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
}

.fundi-stat__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fundi-ink-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.fundi-stat__value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--fundi-navy);
}

.fundi-stat--accent { border-left: 3px solid var(--fundi-teal); }
.fundi-stat--warning { border-left: 3px solid var(--fundi-warning); }

/* Cards (tables/forms only) */
.fundi-card {
    background: var(--fundi-white);
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.fundi-card__header {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--fundi-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.fundi-card__header h2,
.fundi-card__header h3 {
    margin: 0;
    font-size: 0.95rem;
}

.fundi-card__body {
    padding: 0;
}

.fundi-card__body--padded { padding: 1.15rem; }

/* Page header */
.fundi-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.fundi-page-header__desc {
    color: var(--fundi-ink-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* Tables */
.fundi-table-wrap { overflow-x: auto; }

table.fundi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.fundi-table th {
    background: var(--fundi-sand);
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fundi-ink-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--fundi-border);
    white-space: nowrap;
}

.fundi-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--fundi-sand-dark);
    vertical-align: middle;
}

.fundi-table tbody tr:hover { background: rgba(243, 240, 232, 0.5); }
.fundi-table tbody tr:last-child td { border-bottom: none; }

.fundi-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.fundi-table .actions { white-space: nowrap; }

/* Forms */
.fundi-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.fundi-form-group {
    margin-bottom: 1rem;
}

.fundi-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fundi-ink);
    margin-bottom: 0.35rem;
}

.fundi-form-group .hint {
    font-size: 0.75rem;
    color: var(--fundi-ink-muted);
    margin-top: 0.25rem;
}

.fundi-input,
.fundi-select,
.fundi-textarea {
    width: 100%;
    padding: 0.5rem 0.65rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
    background: var(--fundi-white);
    color: var(--fundi-ink);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.fundi-input:focus,
.fundi-select:focus,
.fundi-textarea:focus {
    outline: none;
    border-color: var(--fundi-teal);
    box-shadow: 0 0 0 3px rgba(14, 124, 123, 0.15);
}

.fundi-input.is-invalid,
.fundi-select.is-invalid,
.fundi-textarea.is-invalid {
    border-color: var(--fundi-danger);
}

.fundi-textarea { min-height: 80px; resize: vertical; }

.fundi-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.fundi-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--fundi-border);
}

.fundi-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fundi-form-section__title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--fundi-navy);
    margin-bottom: 1rem;
}

.fundi-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fundi-border);
}

/* Buttons */
.fundi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.4;
}

.fundi-btn:hover { text-decoration: none; }

.fundi-btn--primary {
    background: var(--fundi-teal);
    color: var(--fundi-white);
    border-color: var(--fundi-teal);
}
.fundi-btn--primary:hover {
    background: var(--fundi-teal-dark);
    border-color: var(--fundi-teal-dark);
    color: var(--fundi-white);
}

.fundi-btn--secondary {
    background: var(--fundi-white);
    color: var(--fundi-navy);
    border-color: var(--fundi-border);
}
.fundi-btn--secondary:hover {
    background: var(--fundi-sand);
    color: var(--fundi-navy);
}

.fundi-btn--navy {
    background: var(--fundi-navy);
    color: var(--fundi-white);
    border-color: var(--fundi-navy);
}
.fundi-btn--navy:hover {
    background: var(--fundi-navy-light);
    color: var(--fundi-white);
}

.fundi-btn--danger {
    background: var(--fundi-danger);
    color: var(--fundi-white);
    border-color: var(--fundi-danger);
}
.fundi-btn--danger:hover {
    background: #962018;
    color: var(--fundi-white);
}

.fundi-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.25);
}
.fundi-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fundi-white);
}

.fundi-btn--sm {
    padding: 0.3rem 0.65rem;
    font-size: 0.8rem;
}

.fundi-btn--link {
    background: none;
    border: none;
    color: var(--fundi-teal);
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}
.fundi-btn--link:hover { text-decoration: underline; }

/* Badges */
.fundi-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 999px;
    white-space: nowrap;
}

.fundi-badge--success { background: #d4edda; color: var(--fundi-success); }
.fundi-badge--danger { background: #fde8e6; color: var(--fundi-danger); }
.fundi-badge--warning { background: #fef0e6; color: var(--fundi-warning); }
.fundi-badge--info { background: #e0f0f0; color: var(--fundi-teal); }
.fundi-badge--neutral { background: var(--fundi-sand); color: var(--fundi-ink-muted); }
.fundi-badge--navy { background: #dce4ec; color: var(--fundi-navy); }

/* Alerts */
.fundi-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.fundi-alert--success {
    background: #edf7f0;
    border-color: #b8dfc8;
    color: var(--fundi-success);
}

.fundi-alert--error {
    background: #fdf0ef;
    border-color: #f0c4c0;
    color: var(--fundi-danger);
}

.fundi-alert ul {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

/* Filters bar */
.fundi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--fundi-white);
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
}

.fundi-filters .fundi-form-group { margin-bottom: 0; flex: 1; min-width: 140px; }

/* Detail grid */
.fundi-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.fundi-detail-item label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fundi-ink-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.fundi-detail-item span {
    font-size: 0.9rem;
    color: var(--fundi-ink);
}

/* Two column layout */
.fundi-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .fundi-grid-2 { grid-template-columns: 1fr; }
}

/* Pagination */
.fundi-pagination {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--fundi-border);
    display: flex;
    justify-content: center;
}

.fundi-pagination nav { display: flex; gap: 0.25rem; }
.fundi-pagination .page-link,
.fundi-pagination span {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
    color: var(--fundi-ink);
    text-decoration: none;
}
.fundi-pagination .page-link:hover { background: var(--fundi-sand); }
.fundi-pagination .active span { background: var(--fundi-teal); color: white; border-color: var(--fundi-teal); }

/* Empty state */
.fundi-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--fundi-ink-muted);
    font-size: 0.875rem;
}

/* Inline form row */
.fundi-inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.fundi-inline-form .fundi-form-group { flex: 1; min-width: 120px; margin-bottom: 0; }

/* Tabs (reports subnav) */
.fundi-subnav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--fundi-border);
    padding-bottom: 0;
}

.fundi-subnav a {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fundi-ink-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    text-decoration: none;
}

.fundi-subnav a:hover { color: var(--fundi-teal); text-decoration: none; }
.fundi-subnav a.active {
    color: var(--fundi-teal);
    border-bottom-color: var(--fundi-teal);
}

/* Utility */
.text-muted { color: var(--fundi-ink-muted); }
.text-right { text-align: right; }
.text-success { color: var(--fundi-success); }
.text-danger { color: var(--fundi-danger); }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 900px) {
    .fundi-sidebar { transform: translateX(-100%); }
    .fundi-main { margin-left: 0; }
}

/* Demo credentials on login */
.fundi-demo {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--fundi-border);
}
.fundi-demo__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fundi-ink-muted);
    margin: 0 0 0.65rem;
}
.fundi-demo__hint {
    font-size: 0.8rem;
    color: var(--fundi-ink-muted);
    margin: 0 0 0.75rem;
}
.fundi-demo__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.fundi-demo__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
    background: var(--fundi-sand);
    color: var(--fundi-ink);
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.fundi-demo__btn:hover {
    border-color: var(--fundi-teal);
    background: #fff;
    text-decoration: none;
    color: var(--fundi-ink);
}
.fundi-demo__role {
    font-weight: 600;
    color: var(--fundi-navy);
}
.fundi-demo__id {
    font-size: 0.78rem;
    color: var(--fundi-ink-muted);
    font-family: ui-monospace, monospace;
}
.fundi-demo__pw {
    margin-top: 0.65rem;
    font-size: 0.78rem;
    color: var(--fundi-ink-muted);
}
.fundi-demo__pw code {
    background: var(--fundi-sand-dark);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.78rem;
}

/* —— Vantage Finance House dashboard & loan visuals —— */
.vfh-dash-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.vfh-dash-hero__title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin: 0 0 0.25rem;
    color: var(--fundi-navy);
}
.vfh-dash-hero__sub {
    margin: 0;
    color: var(--fundi-ink-muted);
    font-size: 0.95rem;
}
.vfh-dash-hero__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.vfh-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 1100px) {
    .vfh-chart-grid { grid-template-columns: 1fr; }
}
.vfh-chart-card .fundi-card__body {
    height: 280px;
    position: relative;
}
.vfh-chart-card canvas { max-height: 260px; }

.vfh-glance {
    padding: 1rem 0;
    border-bottom: 1px solid var(--fundi-border);
}
.vfh-glance:last-child { border-bottom: 0; padding-bottom: 0; }
.vfh-glance:first-child { padding-top: 0; }
.vfh-glance__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.vfh-glance__loan {
    font-weight: 700;
    color: var(--fundi-navy);
    text-decoration: none;
}
.vfh-glance__loan:hover { color: var(--fundi-teal); }

.vfh-timeline__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
}
.vfh-timeline__meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fundi-ink-muted);
    font-weight: 600;
}
.vfh-timeline__meta-right { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }

.vfh-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--fundi-sand-dark);
    color: var(--fundi-ink);
}
.vfh-pill--ok { background: rgba(31, 122, 76, 0.12); color: var(--fundi-success); }
.vfh-pill--warn { background: rgba(181, 71, 8, 0.12); color: var(--fundi-warning); }
.vfh-pill--danger { background: rgba(180, 35, 24, 0.12); color: var(--fundi-danger); }
.vfh-pill--navy { background: rgba(11, 31, 51, 0.1); color: var(--fundi-navy); }

.vfh-progress {
    height: 8px;
    background: var(--fundi-sand-dark);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.vfh-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--fundi-teal), var(--fundi-navy));
    border-radius: 999px;
}

.vfh-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (max-width: 800px) {
    .vfh-steps { grid-template-columns: 1fr 1fr; }
}
.vfh-steps__item {
    position: relative;
    padding: 0.65rem 0.7rem 0.65rem 1.6rem;
    background: #fff;
    border: 1px solid var(--fundi-border);
    border-radius: var(--radius);
}
.vfh-steps__item.is-done {
    border-color: rgba(14, 124, 123, 0.45);
    background: rgba(14, 124, 123, 0.06);
}
.vfh-steps__item.is-danger {
    border-color: rgba(180, 35, 24, 0.4);
    background: rgba(180, 35, 24, 0.06);
}
.vfh-steps__dot {
    position: absolute;
    left: 0.55rem;
    top: 0.85rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--fundi-border);
}
.vfh-steps__item.is-done .vfh-steps__dot { background: var(--fundi-teal); }
.vfh-steps__item.is-danger .vfh-steps__dot { background: var(--fundi-danger); }
.vfh-steps__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fundi-navy);
}
.vfh-steps__date {
    display: block;
    font-size: 0.72rem;
    color: var(--fundi-ink-muted);
    margin-top: 0.15rem;
}

.vfh-interest {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}
@media (max-width: 800px) {
    .vfh-interest { grid-template-columns: 1fr 1fr; }
}
.vfh-interest__item {
    background: var(--fundi-sand);
    border-radius: var(--radius);
    padding: 0.65rem 0.75rem;
}
.vfh-interest__item span {
    display: block;
    font-size: 0.72rem;
    color: var(--fundi-ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.vfh-interest__item strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--fundi-navy);
    font-size: 0.95rem;
}

.vfh-mini-progress {
    width: 72px;
    height: 6px;
    background: var(--fundi-sand-dark);
    border-radius: 999px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
}
.vfh-mini-progress span {
    display: block;
    height: 100%;
    background: var(--fundi-teal);
}

.vfh-menu-edit__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.vfh-timeline--compact .vfh-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.vfh-timeline--compact .vfh-steps__item {
    padding: 0.45rem 0.5rem 0.45rem 1.35rem;
}


/* Live loan countdown */
.vfh-countdown {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius);
    min-width: 12.5rem;
    background: rgba(31, 122, 76, 0.1);
    color: var(--fundi-success);
}
.vfh-countdown--warn {
    background: rgba(181, 71, 8, 0.12);
    color: var(--fundi-warning);
}
.vfh-countdown--danger {
    background: rgba(180, 35, 24, 0.12);
    color: var(--fundi-danger);
}
.vfh-countdown--ok {
    background: rgba(31, 122, 76, 0.1);
    color: var(--fundi-success);
}
.vfh-countdown__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
}
.vfh-countdown__units {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-variant-numeric: tabular-nums;
}
.vfh-countdown__unit {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    min-width: 1.75rem;
}
.vfh-countdown__unit strong {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
}
.vfh-countdown__unit small {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.8;
    font-weight: 600;
}
.vfh-countdown__sep {
    font-weight: 700;
    opacity: 0.55;
    padding: 0 0.05rem;
    align-self: flex-start;
    margin-top: 0.05rem;
}
.vfh-steps__time {
    display: block;
    color: var(--fundi-ink-muted);
    font-size: 0.7rem;
}
.vfh-timeline--compact .vfh-countdown {
    min-width: 11rem;
    padding: 0.35rem 0.55rem;
}
.vfh-timeline--compact .vfh-countdown__unit strong {
    font-size: 0.9rem;
}


/* —— Vantage Finance House brand logo —— */
.vfh-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}
.vfh-logo--stack {
    flex-direction: column;
    text-align: center;
    gap: 0.55rem;
}
.vfh-logo__mark {
    display: block;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
}
.vfh-logo--sm .vfh-logo__mark { width: 32px; height: 32px; border-radius: 8px; }
.vfh-logo--lg .vfh-logo__mark { width: 56px; height: 56px; border-radius: 12px; }
.vfh-logo--stack.vfh-logo--lg .vfh-logo__mark { width: 64px; height: 64px; }

.vfh-logo__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.vfh-logo__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.vfh-logo--sm .vfh-logo__name { font-size: 0.92rem; }
.vfh-logo--lg .vfh-logo__name { font-size: 1.35rem; }
.vfh-logo__tag {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.72;
    margin-top: 0.15rem;
}

/* Dark surfaces (sidebar / portal header / hero) */
.vfh-logo--light .vfh-logo__name { color: #fff; }
.vfh-logo--light .vfh-logo__tag { color: rgba(255,255,255,0.55); }

/* Light surfaces (login / sand pages) */
.vfh-logo--dark .vfh-logo__name { color: var(--fundi-navy); }
.vfh-logo--dark .vfh-logo__tag { color: var(--fundi-teal); opacity: 1; }

.fundi-sidebar__brand {
    display: flex;
    align-items: flex-start;
}
.fundi-sidebar__brand .vfh-logo {
    width: 100%;
}
.fundi-guest__logo .vfh-logo {
    justify-content: center;
}
.fundi-landing-nav__brand .vfh-logo,
.fundi-portal-brand .vfh-logo {
    color: inherit;
}
.fundi-landing-nav__brand a,
.fundi-portal-brand a {
    text-decoration: none;
}

.fundi-portal-header .vfh-logo__tag { opacity: 0.65; }
.fundi-landing-nav { display:flex; justify-content:space-between; align-items:center; }
.fundi-landing-nav__brand .vfh-logo__name { color:#fff; }
.fundi-landing-nav__brand .vfh-logo__tag { color: rgba(255,255,255,0.55); }

/* —— Vantage public website —— */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.vfh-site {
    background: var(--fundi-sand);
    color: var(--fundi-ink);
}

.vfh-site-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}
.vfh-site-wrap--narrow { width: min(760px, calc(100% - 2.5rem)); }

.vfh-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 31, 51, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
}
.vfh-site-header__inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 4.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.vfh-site-header__brand { text-decoration: none; }
.vfh-site-header__brand:hover { text-decoration: none; }

.vfh-site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.vfh-site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vfh-site-nav__list a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius);
}
.vfh-site-nav__list a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}
.vfh-site-nav__actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.vfh-site-nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    border-radius: var(--radius);
    padding: 0.55rem;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.vfh-site-nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.vfh-site-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1200px 500px at 85% 15%, rgba(14,124,123,0.28), transparent 55%),
        linear-gradient(160deg, #071523 0%, var(--fundi-navy) 48%, #132d47 100%);
    color: #fff;
    min-height: min(92vh, 760px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0 4rem;
}
.vfh-site-hero__grid {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: center;
}
.vfh-site-hero__brand { margin-bottom: 1.5rem; }
.vfh-site-hero__brand .vfh-logo__name {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    color: #fff;
}
.vfh-site-hero__brand .vfh-logo__tag {
    color: #7BCBC9;
    opacity: 1;
    font-size: 0.78rem;
}
.vfh-site-hero__brand .vfh-logo__mark {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}
.vfh-site-hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.6vw, 3.35rem);
    max-width: 14ch;
    margin: 0 0 1rem;
    line-height: 1.12;
}
.vfh-site-hero__lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    max-width: 34rem;
    margin: 0 0 1.75rem;
}
.vfh-site-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.vfh-site-hero__visual {
    position: relative;
    min-height: 320px;
}
.vfh-site-hero__svg {
    width: 100%;
    height: auto;
    display: block;
    animation: vfhHeroIn 1s ease both;
}
@keyframes vfhHeroIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.vfh-site-hero__copy {
    animation: vfhHeroIn 0.8s ease both;
}

.vfh-site-section {
    padding: 4.5rem 0;
}
.vfh-site-section--tint { background: #ebe6db; }
.vfh-site-section--navy {
    background: var(--fundi-navy);
    color: rgba(255,255,255,0.88);
}
.vfh-site-section--navy h2,
.vfh-site-section--navy h3 { color: #fff; }
.vfh-site-section--navy .vfh-site-section__head p { color: rgba(255,255,255,0.65); }
.vfh-site-section--navy article p { color: rgba(255,255,255,0.7); }

.vfh-site-section__head {
    margin-bottom: 2.25rem;
    max-width: 40rem;
}
.vfh-site-section__head h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    margin-bottom: 0.5rem;
}
.vfh-site-section__head p {
    margin: 0;
    color: var(--fundi-ink-muted);
    font-size: 1.02rem;
}

.vfh-site-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 2.5rem;
}
.vfh-site-split--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vfh-site-split--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vfh-site-split article h3 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}
.vfh-site-split article p {
    margin: 0;
    color: var(--fundi-ink-muted);
    line-height: 1.6;
}

.vfh-site-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.vfh-site-features h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}
.vfh-site-features p {
    margin: 0;
    color: var(--fundi-ink-muted);
    font-size: 0.95rem;
}

.vfh-site-inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.vfh-site-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 2.25rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.vfh-site-trust li {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7BCBC9;
}

.vfh-site-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.vfh-site-steps li span {
    display: block;
    font-family: var(--font-display);
    color: var(--fundi-teal);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.vfh-site-steps h3 { margin-bottom: 0.35rem; }
.vfh-site-steps p {
    margin: 0;
    color: var(--fundi-ink-muted);
    font-size: 0.95rem;
}

.vfh-site-faq details {
    border-bottom: 1px solid var(--fundi-border);
    padding: 0.85rem 0;
}
.vfh-site-faq summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--fundi-navy);
    font-size: 1.02rem;
    list-style: none;
}
.vfh-site-faq summary::-webkit-details-marker { display: none; }
.vfh-site-faq summary::after {
    content: "+";
    float: right;
    color: var(--fundi-teal);
    font-weight: 700;
}
.vfh-site-faq details[open] summary::after { content: "–"; }
.vfh-site-faq p {
    margin: 0.65rem 0 0.25rem;
    color: var(--fundi-ink-muted);
    max-width: 42rem;
}

.vfh-site-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}
.vfh-site-contact h3 { margin-bottom: 0.4rem; }
.vfh-site-contact p {
    margin: 0;
    color: var(--fundi-ink-muted);
    line-height: 1.6;
}

.vfh-site-demo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.vfh-site-demo ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--fundi-ink-muted);
}
.vfh-site-demo li { margin: 0.35rem 0; }

.vfh-site-footer {
    background: #071523;
    color: rgba(255,255,255,0.65);
    padding: 3rem 0 0;
}
.vfh-site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.vfh-site-footer__brand p {
    margin: 0.85rem 0 0;
    max-width: 22rem;
    font-size: 0.92rem;
    line-height: 1.55;
}
.vfh-site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.85rem;
}
.vfh-site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vfh-site-footer li {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}
.vfh-site-footer a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
}
.vfh-site-footer a:hover { color: #fff; text-decoration: underline; }
.vfh-site-footer__base {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 960px) {
    .vfh-site-hero__grid,
    .vfh-site-split,
    .vfh-site-split--2,
    .vfh-site-split--3,
    .vfh-site-features,
    .vfh-site-steps,
    .vfh-site-contact,
    .vfh-site-demo,
    .vfh-site-footer__grid {
        grid-template-columns: 1fr;
    }
    .vfh-site-hero { min-height: auto; padding-top: 2.5rem; }
    .vfh-site-hero__visual { order: -1; min-height: 220px; }

    .vfh-site-nav-toggle { display: flex; }
    .vfh-site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0B1F33;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 1rem 1.25rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .vfh-site-nav.is-open { display: flex; }
    .vfh-site-nav__list {
        flex-direction: column;
        align-items: stretch;
    }
    .vfh-site-nav__actions { justify-content: stretch; }
    .vfh-site-nav__actions .fundi-btn { flex: 1; text-align: center; }
}
