/* ==========================================================================
   NiMWD design system (v2, light shell)
   Tokens -> Bootstrap variable overrides -> components -> app shell -> public
   ========================================================================== */

:root {
    /* Brand */
    --nimwd-green: #0B6B3A;
    --nimwd-green-dark: #08552E;
    --nimwd-green-deep: #053D21;
    --nimwd-green-soft: #EAF5EE;
    --nimwd-green-100: #D3EBDC;
    --nimwd-green-300: #8CC7A5;
    --nimwd-mint: #2FB57A;
    --nimwd-red: #C8102E;
    --nimwd-red-soft: #FDECEF;

    /* Neutrals (slightly green-tinted) */
    --nimwd-ink: #0F1E17;
    --nimwd-text: #24342C;
    --nimwd-muted: #5A6A62;
    --nimwd-subtle: #8A9891;
    --nimwd-bg: #F5F7F6;
    --nimwd-surface: #FFFFFF;
    --nimwd-surface-2: #F9FBFA;
    --nimwd-border: #E3E9E5;
    --nimwd-border-strong: #CFD9D3;

    /* Shape & depth */
    --nimwd-radius-sm: 8px;
    --nimwd-radius: 12px;
    --nimwd-radius-lg: 16px;
    --nimwd-radius-xl: 22px;
    --nimwd-shadow-xs: 0 1px 2px rgba(15, 30, 23, .05);
    --nimwd-shadow-sm: 0 1px 2px rgba(15, 30, 23, .04), 0 2px 6px rgba(15, 30, 23, .04);
    --nimwd-shadow: 0 1px 2px rgba(15, 30, 23, .04), 0 8px 24px -6px rgba(15, 30, 23, .08);
    --nimwd-shadow-lg: 0 2px 4px rgba(15, 30, 23, .04), 0 24px 48px -12px rgba(15, 30, 23, .18);
    --nimwd-ring: 0 0 0 3px rgba(11, 107, 58, .22);

    --sidebar-width: 272px;
    --topbar-height: 68px;

    /* Bootstrap overrides */
    --bs-primary: #0B6B3A;
    --bs-primary-rgb: 11, 107, 58;
    --bs-primary-bg-subtle: #EAF5EE;
    --bs-primary-border-subtle: #BFE0CC;
    --bs-primary-text-emphasis: #08552E;
    --bs-success: #12804A;
    --bs-success-rgb: 18, 128, 74;
    --bs-success-bg-subtle: #E6F6EC;
    --bs-success-border-subtle: #B9E3C9;
    --bs-success-text-emphasis: #0B6638;
    --bs-info: #1F6FD1;
    --bs-info-rgb: 31, 111, 209;
    --bs-info-bg-subtle: #EAF2FD;
    --bs-info-border-subtle: #C3D9F7;
    --bs-info-text-emphasis: #174F96;
    --bs-warning: #D98A00;
    --bs-warning-rgb: 217, 138, 0;
    --bs-warning-bg-subtle: #FFF5DF;
    --bs-warning-border-subtle: #F6DDA4;
    --bs-warning-text-emphasis: #8A5300;
    --bs-danger: #C8102E;
    --bs-danger-rgb: 200, 16, 46;
    --bs-danger-bg-subtle: #FDECEF;
    --bs-danger-border-subtle: #F5C2CB;
    --bs-danger-text-emphasis: #9B0C24;
    --bs-secondary-bg-subtle: #EFF2F0;
    --bs-secondary-border-subtle: #D9E0DC;
    --bs-secondary-text-emphasis: #44524B;
    --bs-light-bg-subtle: #F9FBFA;

    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-color: #24342C;
    --bs-body-color-rgb: 36, 52, 44;
    --bs-body-bg: #FFFFFF;
    --bs-emphasis-color: #0F1E17;
    --bs-secondary-color: #5A6A62;
    --bs-secondary-color-rgb: 90, 106, 98;
    --bs-tertiary-bg: #F3F6F4;
    --bs-heading-color: #0F1E17;
    --bs-link-color: #0B6B3A;
    --bs-link-color-rgb: 11, 107, 58;
    --bs-link-hover-color: #08552E;
    --bs-link-hover-color-rgb: 8, 85, 46;
    --bs-border-color: #E3E9E5;
    --bs-border-color-translucent: rgba(15, 30, 23, .09);
    --bs-border-radius: .625rem;
    --bs-border-radius-sm: .5rem;
    --bs-border-radius-lg: .875rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 1.375rem;
    --bs-box-shadow: 0 1px 2px rgba(15, 30, 23, .04), 0 8px 24px -6px rgba(15, 30, 23, .08);
    --bs-box-shadow-sm: 0 1px 2px rgba(15, 30, 23, .05);
    --bs-box-shadow-lg: 0 24px 48px -12px rgba(15, 30, 23, .18);
    --bs-focus-ring-color: rgba(11, 107, 58, .25);
}

/* Base ------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
    background: var(--nimwd-bg);
    color: var(--nimwd-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--nimwd-ink); letter-spacing: -.015em; }
a { text-underline-offset: 3px; }
::selection { background: rgba(11, 107, 58, .18); }
:focus-visible { outline: 2px solid var(--nimwd-green); outline-offset: 2px; border-radius: 4px; }
.min-w-0 { min-width: 0; }
.text-brand { color: var(--nimwd-green) !important; }
.text-brand-red { color: var(--nimwd-red) !important; }
.bg-brand { background: var(--nimwd-green) !important; }
.bg-brand-soft { background: var(--nimwd-green-soft) !important; }
.text-muted, .text-secondary { color: var(--nimwd-muted) !important; }
.small, small { font-size: .8438rem; }
.fw-semibold { font-weight: 600 !important; }
.tabular, .stat-value, .table td.num, .table th.num { font-variant-numeric: tabular-nums; }

/* Buttons ---------------------------------------------------------------- */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: .9063rem;
    --bs-btn-border-radius: .625rem;
    --bs-btn-focus-box-shadow: var(--nimwd-ring);
    display: inline-flex; align-items: center; justify-content: center; gap: .1rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-y: .34rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: .5rem; }
.btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-padding-x: 1.35rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: .8rem; }
.btn-primary {
    --bs-btn-bg: var(--nimwd-green); --bs-btn-border-color: var(--nimwd-green);
    --bs-btn-hover-bg: var(--nimwd-green-dark); --bs-btn-hover-border-color: var(--nimwd-green-dark);
    --bs-btn-active-bg: var(--nimwd-green-deep); --bs-btn-active-border-color: var(--nimwd-green-deep);
    --bs-btn-disabled-bg: var(--nimwd-green); --bs-btn-disabled-border-color: var(--nimwd-green);
    box-shadow: 0 1px 2px rgba(5, 61, 33, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-outline-primary {
    --bs-btn-color: var(--nimwd-green); --bs-btn-border-color: var(--nimwd-green-100); --bs-btn-bg: #fff;
    --bs-btn-hover-color: var(--nimwd-green-dark); --bs-btn-hover-bg: var(--nimwd-green-soft); --bs-btn-hover-border-color: var(--nimwd-green-300);
    --bs-btn-active-color: var(--nimwd-green-deep); --bs-btn-active-bg: var(--nimwd-green-100); --bs-btn-active-border-color: var(--nimwd-green-300);
}
.btn-secondary {
    --bs-btn-color: var(--nimwd-text); --bs-btn-bg: #EEF2F0; --bs-btn-border-color: #EEF2F0;
    --bs-btn-hover-color: var(--nimwd-ink); --bs-btn-hover-bg: #E3E9E5; --bs-btn-hover-border-color: #E3E9E5;
    --bs-btn-active-color: var(--nimwd-ink); --bs-btn-active-bg: #D8E0DB; --bs-btn-active-border-color: #D8E0DB;
}
.btn-outline-secondary {
    --bs-btn-color: var(--nimwd-text); --bs-btn-border-color: var(--nimwd-border-strong); --bs-btn-bg: #fff;
    --bs-btn-hover-color: var(--nimwd-ink); --bs-btn-hover-bg: var(--nimwd-surface-2); --bs-btn-hover-border-color: #B9C6BF;
    --bs-btn-active-color: var(--nimwd-ink); --bs-btn-active-bg: #EEF2F0; --bs-btn-active-border-color: #B9C6BF;
}
.btn-light {
    --bs-btn-color: var(--nimwd-text); --bs-btn-bg: #fff; --bs-btn-border-color: var(--nimwd-border);
    --bs-btn-hover-color: var(--nimwd-ink); --bs-btn-hover-bg: var(--nimwd-surface-2); --bs-btn-hover-border-color: var(--nimwd-border-strong);
    --bs-btn-active-bg: #EEF2F0; --bs-btn-active-border-color: var(--nimwd-border-strong);
}
.btn-danger {
    --bs-btn-bg: var(--nimwd-red); --bs-btn-border-color: var(--nimwd-red);
    --bs-btn-hover-bg: #A50D26; --bs-btn-hover-border-color: #A50D26;
    --bs-btn-active-bg: #8A0B20; --bs-btn-active-border-color: #8A0B20;
}
.btn-outline-danger {
    --bs-btn-color: var(--nimwd-red); --bs-btn-border-color: #F1C1CA; --bs-btn-bg: #fff;
    --bs-btn-hover-color: #9B0C24; --bs-btn-hover-bg: var(--nimwd-red-soft); --bs-btn-hover-border-color: #E89AA8;
    --bs-btn-active-color: #8A0B20; --bs-btn-active-bg: #F9D5DC; --bs-btn-active-border-color: #E89AA8;
}
.btn-success { --bs-btn-bg: var(--bs-success); --bs-btn-border-color: var(--bs-success); --bs-btn-hover-bg: #0B6638; --bs-btn-hover-border-color: #0B6638; }
.btn-outline-success { --bs-btn-color: #0B6638; --bs-btn-border-color: #B9E3C9; --bs-btn-hover-bg: #E6F6EC; --bs-btn-hover-color: #0B6638; --bs-btn-hover-border-color: #8CC7A5; }
.btn-warning { --bs-btn-color: #3D2600; --bs-btn-bg: #F5B53D; --bs-btn-border-color: #F5B53D; --bs-btn-hover-bg: #E9A520; --bs-btn-hover-border-color: #E9A520; --bs-btn-hover-color: #3D2600; }
.btn-outline-warning { --bs-btn-color: #8A5300; --bs-btn-border-color: #F6DDA4; --bs-btn-hover-bg: #FFF5DF; --bs-btn-hover-color: #8A5300; --bs-btn-hover-border-color: #EBC46B; }
.btn-link { --bs-btn-color: var(--nimwd-green); --bs-btn-hover-color: var(--nimwd-green-dark); --bs-btn-font-weight: 600; }
.btn-icon { width: 40px; height: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }

/* Forms ------------------------------------------------------------------ */
.form-label { font-weight: 600; font-size: .8438rem; color: var(--nimwd-ink); margin-bottom: .4rem; }
.form-text { color: var(--nimwd-muted); font-size: .8125rem; }
.form-control, .form-select {
    border-color: var(--nimwd-border-strong);
    border-radius: .625rem;
    padding: .58rem .85rem;
    font-size: .9375rem;
    background-color: #fff;
    box-shadow: var(--nimwd-shadow-xs);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-select { padding-right: 2.25rem; }
.form-control-sm, .form-select-sm { padding: .36rem .7rem; font-size: .8438rem; border-radius: .5rem; }
.form-select-sm { padding-right: 2rem; }
.form-control-lg, .form-select-lg { padding: .75rem 1rem; font-size: 1rem; border-radius: .8rem; }
.form-control::placeholder { color: #9AA7A0; }
.form-control:hover, .form-select:hover { border-color: #B9C6BF; }
.form-control:focus, .form-select:focus { border-color: var(--nimwd-green); box-shadow: var(--nimwd-ring); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: var(--nimwd-surface-2); }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(200, 16, 46, .18); }
.form-check-input { border-color: var(--nimwd-border-strong); }
.form-check-input:checked { background-color: var(--nimwd-green); border-color: var(--nimwd-green); }
.form-check-input:focus { border-color: var(--nimwd-green); box-shadow: var(--nimwd-ring); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238CC7A5'/%3e%3c/svg%3e"); }
.input-group-text { background: var(--nimwd-surface-2); border-color: var(--nimwd-border-strong); color: var(--nimwd-muted); border-radius: .625rem; }
.input-group > .form-control, .input-group > .input-group-text, .input-group > .btn { box-shadow: none; }
.invalid-feedback { font-size: .8125rem; }
fieldset legend { font-size: .8438rem; }

/* Cards ------------------------------------------------------------------ */
.card {
    --bs-card-border-color: var(--nimwd-border);
    --bs-card-border-radius: var(--nimwd-radius-lg);
    --bs-card-inner-border-radius: calc(var(--nimwd-radius-lg) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-y: .95rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
    --bs-card-spacer-y: 1.15rem;
    box-shadow: var(--nimwd-shadow-sm);
}
.card-header { font-weight: 700; color: var(--nimwd-ink); border-bottom-color: var(--nimwd-border); font-size: .9688rem; }
.card-header .bi { color: var(--nimwd-green); }
.card-header .badge .bi { color: inherit; }
.card-footer { background: var(--nimwd-surface-2); border-top-color: var(--nimwd-border); }
.card-title { font-weight: 700; color: var(--nimwd-ink); }
.card.border-0 { box-shadow: none; }
.card-hover { transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card-hover:hover { box-shadow: var(--nimwd-shadow); transform: translateY(-2px); border-color: var(--nimwd-border-strong); }

/* KPI / stat card -------------------------------------------------------- */
.stat-card { position: relative; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.stat-card .card-body { padding: 1.1rem 1.2rem; }
.stat-card:has(.stretched-link):hover { box-shadow: var(--nimwd-shadow); transform: translateY(-2px); border-color: var(--nimwd-border-strong); }
.stat-card .stat-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; color: var(--nimwd-ink); letter-spacing: -.02em; }
.stat-card .stat-label { color: var(--nimwd-muted); font-size: .8438rem; font-weight: 500; }
.stat-card .stat-meta { font-size: .78rem; color: var(--nimwd-muted); }
.stat-card .stat-go { color: var(--nimwd-subtle); transition: transform .2s ease, color .2s ease; }
.stat-card:hover .stat-go { color: var(--nimwd-green); transform: translateX(2px); }
.stat-card::after {
    content: ""; position: absolute; right: -28px; top: -28px; width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 107, 58, .06), transparent 70%); pointer-events: none;
}

/* Empty state ------------------------------------------------------------ */
.empty-state { padding: 3rem 1.25rem; text-align: center; color: var(--nimwd-muted); }
.empty-state .bi {
    font-size: 1.6rem; color: var(--nimwd-green);
    width: 60px; height: 60px; border-radius: 18px; margin: 0 auto .9rem;
    display: flex !important; align-items: center; justify-content: center;
    background: var(--nimwd-green-soft); box-shadow: inset 0 0 0 6px #F4FAF6;
}
.empty-state p { font-weight: 500; }

/* Tables ----------------------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--nimwd-text);
    --bs-table-border-color: var(--nimwd-border);
    --bs-table-hover-bg: #F4F8F5;
    --bs-table-striped-bg: #FAFCFB;
    --bs-table-active-bg: var(--nimwd-green-soft);
    font-size: .9063rem;
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table-sm > :not(caption) > * > * { padding: .5rem .75rem; }
.table > thead > tr > th, .table > thead > tr > td {
    background: var(--nimwd-surface-2);
    color: var(--nimwd-muted);
    font-size: .7188rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--nimwd-border);
    white-space: nowrap;
    position: sticky; top: 0; z-index: 1;
}
.table > thead.table-light > tr > th { background: var(--nimwd-surface-2); color: var(--nimwd-muted); }
.table > tbody > tr:last-child > * { border-bottom: 0; }
.table-hover > tbody > tr { transition: background-color .12s ease; }
.table a:not(.btn) { font-weight: 600; text-decoration: none; }
.table a:not(.btn):hover { text-decoration: underline; }
.table .text-secondary, .table .small { font-size: .8125rem; }
.card > .table, .card > .table-responsive > .table, .card > .card-body.p-0 .table { margin-bottom: 0; }
.card > .table-responsive:last-child, .card > .table:last-child { border-bottom-left-radius: var(--bs-card-inner-border-radius); border-bottom-right-radius: var(--bs-card-inner-border-radius); }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:first-child { border-top-left-radius: var(--bs-card-inner-border-radius); }
.card > .table-responsive:first-child > .table > thead > tr:first-child > th:last-child { border-top-right-radius: var(--bs-card-inner-border-radius); }
.table-responsive { -webkit-overflow-scrolling: touch; }
/* Opt-in: a table that scrolls inside its own box with a sticky header */
.table-scroll { max-height: 560px; overflow: auto; }
/* Opt-in modern table wrapper */
.table-modern { background: #fff; border: 1px solid var(--nimwd-border); border-radius: var(--nimwd-radius-lg); overflow: hidden; box-shadow: var(--nimwd-shadow-sm); }
.table-modern > .table-responsive { margin: 0; }
.table-actions { display: flex; gap: .35rem; justify-content: flex-end; flex-wrap: nowrap; }

/* Badges & status pills -------------------------------------------------- */
.badge { font-weight: 600; font-size: .7344rem; padding: .36em .7em; border-radius: 999px; letter-spacing: .01em; }
.badge.text-bg-primary { background: var(--bs-primary-bg-subtle) !important; color: var(--bs-primary-text-emphasis) !important; }
.badge.text-bg-secondary { background: var(--bs-secondary-bg-subtle) !important; color: var(--bs-secondary-text-emphasis) !important; }
.badge.text-bg-success { background: var(--bs-success-bg-subtle) !important; color: var(--bs-success-text-emphasis) !important; }
.badge.text-bg-info { background: var(--bs-info-bg-subtle) !important; color: var(--bs-info-text-emphasis) !important; }
.badge.text-bg-warning { background: var(--bs-warning-bg-subtle) !important; color: var(--bs-warning-text-emphasis) !important; }
.badge.text-bg-danger { background: var(--bs-danger-bg-subtle) !important; color: var(--bs-danger-text-emphasis) !important; }
.badge.text-bg-light { background: #F1F4F2 !important; color: var(--nimwd-text) !important; border: 1px solid var(--nimwd-border); }
.badge.text-bg-dark { background: var(--nimwd-ink) !important; color: #fff !important; }
.badge.bg-primary, .badge.bg-success { background: var(--nimwd-green) !important; }
.badge.bg-danger { background: var(--nimwd-red) !important; }

.status-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .65rem .3rem .55rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; line-height: 1.1; white-space: nowrap;
    border: 1px solid transparent;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-pill.status-draft { background: #F0F2F1; color: #4A5751; border-color: #E1E6E3; }
.status-pill.status-submitted { background: #EAF2FD; color: #174F96; border-color: #D3E3F9; }
.status-pill.status-correction_requested { background: #FFF5DF; color: #8A5300; border-color: #F6E2B4; }
.status-pill.status-verified { background: #E6F6EC; color: #0B6638; border-color: #C9EBD5; }
.status-pill.status-rejected { background: #FDECEF; color: #9B0C24; border-color: #F7D0D7; }

/* Navs, tabs & pills ----------------------------------------------------- */
.nav-tabs {
    --bs-nav-tabs-border-color: var(--nimwd-border);
    --bs-nav-tabs-border-width: 1px;
    --bs-nav-tabs-link-active-color: var(--nimwd-green);
    --bs-nav-tabs-link-active-bg: transparent;
    gap: .25rem; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }
.nav-tabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px;
    color: var(--nimwd-muted); font-weight: 600; font-size: .9063rem; padding: .7rem .9rem; white-space: nowrap;
}
.nav-tabs .nav-link:hover { color: var(--nimwd-ink); border-bottom-color: var(--nimwd-border-strong); }
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link { color: var(--nimwd-green); border-bottom-color: var(--nimwd-green); background: transparent; }
.nav-tabs .nav-link .badge { margin-left: .35rem; }
.card-header-tabs { margin-bottom: calc(-1 * var(--bs-card-cap-padding-y)); }

.nav-pills {
    --bs-nav-pills-border-radius: 999px;
    --bs-nav-pills-link-active-bg: #fff;
    --bs-nav-pills-link-active-color: var(--nimwd-green-dark);
    background: #EDF1EE; padding: 4px; border-radius: 999px; display: inline-flex; gap: 2px; flex-wrap: wrap;
}
.nav-pills .nav-link { color: var(--nimwd-muted); font-weight: 600; font-size: .8438rem; padding: .42rem .95rem; }
.nav-pills .nav-link:hover { color: var(--nimwd-ink); }
.nav-pills .nav-link.active { box-shadow: var(--nimwd-shadow-sm); }
.nav-pills.flex-column { display: flex; background: transparent; padding: 0; border-radius: 0; }
.nav-pills.flex-column .nav-link { border-radius: 10px; }
.nav-pills.flex-column .nav-link.active { background: var(--nimwd-green-soft); box-shadow: none; }

/* Pagination ------------------------------------------------------------- */
.pagination {
    --bs-pagination-color: var(--nimwd-text);
    --bs-pagination-border-color: var(--nimwd-border);
    --bs-pagination-hover-color: var(--nimwd-green-dark);
    --bs-pagination-hover-bg: var(--nimwd-green-soft);
    --bs-pagination-hover-border-color: var(--nimwd-green-100);
    --bs-pagination-focus-box-shadow: var(--nimwd-ring);
    --bs-pagination-focus-color: var(--nimwd-green-dark);
    --bs-pagination-active-bg: var(--nimwd-green);
    --bs-pagination-active-border-color: var(--nimwd-green);
    --bs-pagination-disabled-color: #A3AFA9;
    --bs-pagination-font-size: .8438rem;
    gap: 4px; margin-bottom: 0; flex-wrap: wrap;
}
.pagination .page-link { border-radius: 8px !important; min-width: 36px; text-align: center; font-weight: 600; }
nav[role="navigation"] p.small, nav[aria-label*="agination"] p.small { color: var(--nimwd-muted); }

/* Alerts ----------------------------------------------------------------- */
.alert {
    --bs-alert-border-radius: var(--nimwd-radius);
    --bs-alert-padding-y: .85rem;
    --bs-alert-padding-x: 1rem;
    border-width: 1px; font-size: .9063rem; box-shadow: var(--nimwd-shadow-xs);
}
.alert-success { --bs-alert-bg: #EEF9F2; --bs-alert-border-color: #C9EBD5; --bs-alert-color: #0B5A31; }
.alert-info { --bs-alert-bg: #EFF5FE; --bs-alert-border-color: #D3E3F9; --bs-alert-color: #174F96; }
.alert-warning { --bs-alert-bg: #FFF8E8; --bs-alert-border-color: #F6E2B4; --bs-alert-color: #7A4900; }
.alert-danger { --bs-alert-bg: #FEF1F3; --bs-alert-border-color: #F7D0D7; --bs-alert-color: #8A0B20; }
.alert-secondary, .alert-light { --bs-alert-bg: #F6F8F7; --bs-alert-border-color: var(--nimwd-border); --bs-alert-color: var(--nimwd-text); }
.alert .bi { font-size: 1.05rem; }
.alert .alert-link { font-weight: 700; }

/* Dropdowns, modals, toasts, popovers ------------------------------------ */
.dropdown-menu {
    --bs-dropdown-border-color: var(--nimwd-border);
    --bs-dropdown-border-radius: 12px;
    --bs-dropdown-padding-x: .35rem;
    --bs-dropdown-padding-y: .35rem;
    --bs-dropdown-item-padding-x: .75rem;
    --bs-dropdown-item-padding-y: .5rem;
    --bs-dropdown-item-border-radius: 8px;
    --bs-dropdown-link-hover-bg: #F1F5F2;
    --bs-dropdown-link-active-bg: var(--nimwd-green-soft);
    --bs-dropdown-link-active-color: var(--nimwd-green-dark);
    --bs-dropdown-font-size: .9063rem;
    box-shadow: var(--nimwd-shadow-lg) !important;
}
.dropdown-item { font-weight: 500; }
.dropdown-item .bi { color: var(--nimwd-subtle); }
.dropdown-item.text-danger .bi { color: inherit; }
.modal {
    --bs-modal-border-radius: 18px;
    --bs-modal-inner-border-radius: 17px;
    --bs-modal-border-color: transparent;
    --bs-modal-header-border-color: var(--nimwd-border);
    --bs-modal-footer-border-color: var(--nimwd-border);
    --bs-modal-padding: 1.35rem;
    --bs-modal-header-padding: 1.1rem 1.35rem;
    --bs-modal-box-shadow: var(--nimwd-shadow-lg);
}
.modal-content { box-shadow: var(--nimwd-shadow-lg); }
.modal-title { font-weight: 700; font-size: 1.0625rem; }
.modal-footer { background: var(--nimwd-surface-2); border-bottom-left-radius: 17px; border-bottom-right-radius: 17px; }
.modal-backdrop { --bs-backdrop-bg: #0B1A12; --bs-backdrop-opacity: .45; }
.toast { --bs-toast-border-radius: 12px; --bs-toast-box-shadow: var(--nimwd-shadow-lg); font-weight: 500; }
.list-group { --bs-list-group-border-color: var(--nimwd-border); --bs-list-group-border-radius: var(--nimwd-radius); --bs-list-group-action-hover-bg: #F4F8F5; --bs-list-group-active-bg: var(--nimwd-green); --bs-list-group-active-border-color: var(--nimwd-green); }
.progress { --bs-progress-bg: #EAF0EC; --bs-progress-border-radius: 999px; --bs-progress-bar-bg: var(--nimwd-green); }
.accordion { --bs-accordion-border-color: var(--nimwd-border); --bs-accordion-active-bg: var(--nimwd-green-soft); --bs-accordion-active-color: var(--nimwd-green-dark); --bs-accordion-btn-focus-box-shadow: var(--nimwd-ring); --bs-accordion-border-radius: var(--nimwd-radius); --bs-accordion-inner-border-radius: calc(var(--nimwd-radius) - 1px); }
.breadcrumb { --bs-breadcrumb-font-size: .8125rem; --bs-breadcrumb-divider-color: var(--nimwd-subtle); --bs-breadcrumb-item-active-color: var(--nimwd-muted); margin-bottom: .35rem; }
.breadcrumb a { text-decoration: none; color: var(--nimwd-muted); }
.breadcrumb a:hover { color: var(--nimwd-green); }
hr { border-color: var(--nimwd-border); opacity: 1; }
dl dt { font-weight: 600; color: var(--nimwd-muted); font-size: .8125rem; }

/* Page header ------------------------------------------------------------ */
.page-header { margin-bottom: 1.5rem !important; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; margin: 0; letter-spacing: -.025em; display: flex; align-items: center; gap: .65rem; }
.page-header h1 .page-icon {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--nimwd-green); font-size: 1.15rem;
    border: 1px solid var(--nimwd-border); box-shadow: var(--nimwd-shadow-xs);
}
.page-header .subtitle { color: var(--nimwd-muted); font-size: .9063rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 575.98px) {
    .page-header h1 { font-size: 1.3rem; }
    .page-actions > .btn { flex: 1 1 auto; }
}

/* Section headings & helpers --------------------------------------------- */
.section-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--nimwd-muted); margin-bottom: .75rem; }
.icon-chip { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--nimwd-green-soft); color: var(--nimwd-green); flex-shrink: 0; }
.filter-bar { background: #fff; border: 1px solid var(--nimwd-border); border-radius: var(--nimwd-radius-lg); padding: .85rem; box-shadow: var(--nimwd-shadow-xs); }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .55rem 1rem; font-size: .9063rem; }
.kv dt { margin: 0; }
.kv dd { margin: 0; color: var(--nimwd-ink); font-weight: 500; overflow-wrap: anywhere; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app-shell { min-height: 100vh; }

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--nimwd-surface);
    color: var(--nimwd-text);
    border-right: 1px solid var(--nimwd-border);
}
@media (min-width: 992px) {
    .app-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1030; }
    .app-main { margin-left: var(--sidebar-width); }
}
@media (max-width: 991.98px) {
    .app-sidebar.offcanvas-lg { --bs-offcanvas-width: min(300px, 86vw); border-right: 0; box-shadow: var(--nimwd-shadow-lg); }
}
.app-sidebar .sidebar-brand { padding: 1.1rem 1.25rem .9rem; display: flex; align-items: center; gap: .65rem; }
.app-sidebar .sidebar-brand img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.app-sidebar .sidebar-brand .brand-text { line-height: 1.15; min-width: 0; }
.app-sidebar .sidebar-brand .brand-text strong { display: block; font-size: .9375rem; color: var(--nimwd-ink); letter-spacing: -.01em; }
.app-sidebar .sidebar-brand .brand-text span { display: block; font-size: .7188rem; color: var(--nimwd-muted); }
.app-sidebar .offcanvas-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--nimwd-border); }
.app-sidebar .offcanvas-header img { height: 36px; width: auto; }

.sidebar-nav { padding: .25rem .75rem 1rem; }
.sidebar-nav .nav-section {
    font-size: .6875rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--nimwd-subtle); padding: 1.1rem .75rem .45rem;
}
.sidebar-nav .nav-link {
    color: var(--nimwd-text); border-radius: 10px; padding: .55rem .75rem; margin: 1px 0;
    display: flex; align-items: center; gap: .7rem; font-size: .9063rem; font-weight: 500;
    position: relative; transition: background-color .15s ease, color .15s ease;
}
.sidebar-nav .nav-link .bi {
    font-size: 1.05rem; width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center; color: var(--nimwd-muted);
    transition: background-color .15s ease, color .15s ease;
}
.sidebar-nav .nav-link:hover { background: #F3F6F4; color: var(--nimwd-ink); }
.sidebar-nav .nav-link:hover .bi { color: var(--nimwd-green); }
.sidebar-nav .nav-link.active { background: var(--nimwd-green-soft); color: var(--nimwd-green-dark); font-weight: 700; }
.sidebar-nav .nav-link.active .bi { background: var(--nimwd-green); color: #fff; box-shadow: 0 4px 10px -3px rgba(11, 107, 58, .55); }
.sidebar-nav .nav-link:focus-visible { outline: 2px solid var(--nimwd-green); outline-offset: -2px; }

.sidebar-footer { padding: .75rem; border-top: 1px solid var(--nimwd-border); }
.sidebar-user { display: flex; align-items: center; gap: .65rem; padding: .55rem; border-radius: 12px; background: var(--nimwd-surface-2); border: 1px solid var(--nimwd-border); }
.sidebar-user .lh-sm { min-width: 0; }
.sidebar-user .lh-sm strong { display: block; font-size: .8438rem; color: var(--nimwd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .lh-sm span { display: block; font-size: .75rem; color: var(--nimwd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-flag { height: 3px; width: 44px; border-radius: 3px; background: linear-gradient(90deg, var(--nimwd-green) 0 66%, var(--nimwd-red) 66% 100%); margin: 0 1.5rem .25rem; }

.app-topbar {
    position: sticky; top: 0; z-index: 1020;
    background: rgba(245, 247, 246, .82);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.app-topbar.is-scrolled { border-bottom-color: var(--nimwd-border); background: rgba(255, 255, 255, .88); }
.app-topbar .topbar-inner { max-width: 1600px; margin-inline: auto; min-height: var(--topbar-height); display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; }
@media (min-width: 768px) { .app-topbar .topbar-inner { padding: .6rem 2rem; } }
.app-topbar .topbar-title { min-width: 0; line-height: 1.2; }
.app-topbar .topbar-title .eyebrow { font-size: .75rem; color: var(--nimwd-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar .topbar-title .title { font-size: 1rem; font-weight: 700; color: var(--nimwd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-topbar .topbar-search { position: relative; max-width: 340px; width: 100%; }
.app-topbar .topbar-search .bi { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--nimwd-subtle); pointer-events: none; }
.app-topbar .topbar-search .form-control { padding-left: 2.3rem; background: #fff; border-color: var(--nimwd-border); border-radius: 999px; }
.app-topbar .user-menu-btn { border: 1px solid var(--nimwd-border); background: #fff; border-radius: 999px; padding: .25rem .6rem .25rem .25rem; display: flex; align-items: center; gap: .55rem; color: var(--nimwd-text); box-shadow: var(--nimwd-shadow-xs); }
.app-topbar .user-menu-btn:hover { border-color: var(--nimwd-border-strong); }
.app-topbar .user-menu-btn:focus-visible { outline: none; box-shadow: var(--nimwd-ring); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #D9F0E2, #BFE4CD); color: var(--nimwd-green-deep);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8125rem; letter-spacing: .02em;
}
.avatar-lg { width: 44px; height: 44px; font-size: .95rem; }
.app-topbar .menu-toggle { width: 40px; height: 40px; border-radius: 10px; }

.app-content { padding: 1.25rem 1rem 2.5rem; width: 100%; max-width: 1600px; margin-inline: auto; }
@media (min-width: 768px) { .app-content { padding: 1.5rem 2rem 3rem; } }
.app-footer { width: 100%; max-width: 1600px; margin-inline: auto; padding: 1rem 1rem 1.5rem; font-size: .8125rem; color: var(--nimwd-muted); }
@media (min-width: 768px) { .app-footer { padding: 1rem 2rem 1.5rem; } }

/* ==========================================================================
   Public pages (landing, auth)
   ========================================================================== */
.public-body { background: #fff; }
.public-nav {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 30, 23, .06);
}
.public-nav .navbar-brand img { height: 48px; width: auto; }
@media (max-width: 575.98px) { .public-nav .navbar-brand img { height: 36px; } }
.public-nav .nav-link-plain { color: var(--nimwd-text); font-weight: 600; font-size: .9063rem; text-decoration: none; padding: .5rem .75rem; border-radius: 8px; }
.public-nav .nav-link-plain:hover { color: var(--nimwd-green); background: var(--nimwd-green-soft); }

/* Hero slider */
.hero-slider { position: relative; background: var(--nimwd-green-deep); }
.hero-slider .carousel-item { height: clamp(560px, 82vh, 760px); background: radial-gradient(120% 90% at 85% 10%, #1E8A56 0%, #0B6B3A 38%, #053D21 100%); }
.hero-slider .carousel-item:nth-child(2) { background: radial-gradient(120% 90% at 15% 15%, #2A7B53 0%, #0B5A33 40%, #06321C 100%); }
.hero-slider .carousel-item:nth-child(3) { background: radial-gradient(120% 90% at 80% 80%, #138A7B 0%, #0B6B54 40%, #05392C 100%); }
.hero-slider .carousel-item:nth-child(4) { background: radial-gradient(120% 90% at 30% 85%, #3E8A5E 0%, #0B6B3A 45%, #053D21 100%); }
.hero-slider .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .slide-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 34, 19, .88) 0%, rgba(4, 40, 22, .7) 42%, rgba(4, 40, 22, .25) 75%, rgba(4, 40, 22, .15) 100%),
        linear-gradient(0deg, rgba(3, 26, 14, .55) 0%, rgba(3, 26, 14, 0) 45%);
}
.hero-slider .slide-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding-bottom: 5.5rem; }
.hero-slider .slide-text { max-width: 680px; color: #fff; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .38rem .8rem .38rem .45rem; border-radius: 999px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: .8125rem; font-weight: 600; color: #fff;
}
.hero-eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--nimwd-red); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }
.hero-slider h1, .hero-slider .h1 { color: #fff; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.1rem, 5.2vw, 3.75rem); margin: 1.1rem 0 1rem; text-wrap: balance; }
.hero-slider .lead { color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px; text-wrap: pretty; }
.hero-slider .hero-sub { color: #fff; font-weight: 700; font-size: .9375rem; display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem; }
.hero-slider .hero-sub::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--nimwd-red); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.btn-hero-light { --bs-btn-color: var(--nimwd-green-deep); --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-color: var(--nimwd-green-deep); --bs-btn-hover-bg: #EAF5EE; --bs-btn-hover-border-color: #EAF5EE; --bs-btn-active-bg: #D3EBDC; --bs-btn-active-border-color: #D3EBDC; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.btn-hero-glass { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-border-color: rgba(255, 255, 255, .4); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .22); --bs-btn-hover-border-color: rgba(255, 255, 255, .6); --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-hero-light:focus-visible, .btn-hero-glass:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next {
    width: 48px; height: 48px; top: auto; bottom: 2rem; opacity: 1; border-radius: 50%;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 3;
    transition: background-color .15s ease;
}
.hero-slider .carousel-control-prev { left: auto; right: calc(1rem + 56px); }
.hero-slider .carousel-control-next { right: 1rem; }
@media (min-width: 768px) {
    .hero-slider .carousel-control-prev { right: calc(2.5rem + 56px); }
    .hero-slider .carousel-control-next { right: 2.5rem; }
}
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { background: rgba(255, 255, 255, .26); }
.hero-slider .carousel-control-prev:focus-visible, .hero-slider .carousel-control-next:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-slider .carousel-control-prev .bi, .hero-slider .carousel-control-next .bi { font-size: 1.25rem; color: #fff; }
.hero-slider .carousel-indicators { justify-content: flex-start; margin: 0; left: 1rem; right: auto; bottom: 2.85rem; gap: 6px; z-index: 3; }
@media (min-width: 768px) { .hero-slider .carousel-indicators { left: max(2.5rem, calc((100vw - 1296px) / 2 + 12px)); } }
.hero-slider .carousel-indicators [data-bs-target] {
    width: 22px; height: 6px; border-radius: 6px; border: 0; margin: 0; padding: 0;
    background: rgba(255, 255, 255, .45); opacity: 1; transition: width .3s ease, background-color .3s ease; text-indent: 0;
}
.hero-slider .carousel-indicators .active { width: 44px; background: #fff; }
.hero-slider .carousel-indicators [data-bs-target]:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-slider .slide-credit { position: absolute; right: 1rem; top: 1rem; z-index: 3; font-size: .6875rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 767.98px) {
    .hero-slider .carousel-item { height: auto; min-height: 600px; }
    .hero-slider .slide-content { padding-top: 3rem; padding-bottom: 7rem; min-height: 600px; }
    .hero-slider .slide-overlay { background: linear-gradient(180deg, rgba(4, 34, 19, .62) 0%, rgba(4, 34, 19, .82) 60%, rgba(4, 34, 19, .92) 100%); }
    .hero-ctas .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-fade .carousel-item, .carousel-item { transition: none !important; }
    .card-hover, .stat-card, .btn { transition: none !important; }
}

/* Register-choice cards overlapping the hero */
.choice-wrap { position: relative; z-index: 5; margin-top: -3.25rem; }
.choice-card {
    display: flex; gap: 1rem; align-items: flex-start; height: 100%;
    background: #fff; border: 1px solid var(--nimwd-border); border-radius: var(--nimwd-radius-xl);
    padding: 1.35rem; box-shadow: var(--nimwd-shadow-lg); text-decoration: none; color: var(--nimwd-text);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--nimwd-green-300); color: var(--nimwd-text); }
.choice-card:focus-visible { outline: 3px solid var(--nimwd-green); outline-offset: 2px; }
.choice-card .choice-icon { width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; background: var(--nimwd-green-soft); color: var(--nimwd-green); }
.choice-card.choice-red .choice-icon { background: var(--nimwd-red-soft); color: var(--nimwd-red); }
.choice-card .choice-title { font-weight: 800; font-size: 1.0625rem; color: var(--nimwd-ink); letter-spacing: -.01em; }
.choice-card .choice-desc { font-size: .875rem; color: var(--nimwd-muted); margin: .25rem 0 .75rem; }
.choice-card .choice-go { font-weight: 700; font-size: .875rem; color: var(--nimwd-green); display: inline-flex; align-items: center; gap: .35rem; }
.choice-card:hover .choice-go .bi { transform: translateX(3px); }
.choice-card .choice-go .bi { transition: transform .2s ease; }
.choice-card.choice-signin { background: linear-gradient(135deg, #F4FAF6, #fff); }

/* Landing sections */
.section { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.25rem 0; } }
.section-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--nimwd-red); margin-bottom: .6rem; }
.section-heading { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; color: var(--nimwd-ink); text-wrap: balance; }
.section-lead { color: var(--nimwd-muted); font-size: 1.0313rem; max-width: 620px; }
.mesh-bg {
    background:
        radial-gradient(40% 50% at 8% 10%, rgba(47, 181, 122, .10), transparent 70%),
        radial-gradient(35% 45% at 95% 20%, rgba(200, 16, 46, .06), transparent 70%),
        radial-gradient(50% 60% at 60% 100%, rgba(11, 107, 58, .08), transparent 70%),
        #FAFCFB;
}
.step-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--nimwd-border); border-radius: var(--nimwd-radius-xl); padding: 1.5rem; box-shadow: var(--nimwd-shadow-sm); }
.step-card .step-num {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; color: #fff; background: linear-gradient(135deg, #1E8A56, var(--nimwd-green)); box-shadow: 0 8px 16px -8px rgba(11, 107, 58, .7);
}
.step-card h3 { font-size: 1.0625rem; font-weight: 800; margin: 1rem 0 .4rem; }
.step-card p { color: var(--nimwd-muted); font-size: .9063rem; margin: 0; }
.step-card .step-line { position: absolute; top: 2.75rem; right: -1.5rem; width: 1.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--nimwd-green-300) 0 6px, transparent 6px 10px); }
.feature-tile { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--nimwd-green-soft); color: var(--nimwd-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; flex-shrink: 0; }
.feature-tile h3 { font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.feature-tile p { color: var(--nimwd-muted); font-size: .9063rem; margin: 0; }
.trust-band {
    border-radius: var(--nimwd-radius-xl); padding: 2rem; color: #fff; position: relative; overflow: hidden;
    background: radial-gradient(80% 120% at 100% 0%, #1E8A56 0%, #0B6B3A 45%, #064826 100%);
    box-shadow: var(--nimwd-shadow-lg);
}
.trust-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.trust-band h2 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.trust-band p { color: rgba(255, 255, 255, .85); }
.public-footer { border-top: 1px solid var(--nimwd-border); background: #fff; font-size: .8438rem; color: var(--nimwd-muted); }
.public-footer img { height: 36px; width: auto; }
.brand-stripe { height: 3px; background: linear-gradient(90deg, var(--nimwd-green) 0 72%, var(--nimwd-red) 72% 100%); }

/* Auth split screen */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 992px) { .auth-split { grid-template-columns: minmax(420px, 46%) 1fr; } }
.auth-brand {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 90% at 0% 0%, #1E8A56 0%, #0B6B3A 40%, #053D21 100%);
    padding: 1.25rem 1rem 1.5rem;
}
.auth-brand .auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-brand .auth-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(8, 85, 46, .9) 0%, rgba(5, 61, 33, .82) 45%, rgba(3, 30, 16, .93) 100%); }
.auth-brand .auth-brand-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.auth-brand .auth-logo img { height: 48px; width: auto; }
.auth-brand h2 { color: #fff; font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.6rem, 2.6vw, 2.35rem); line-height: 1.12; text-wrap: balance; }
.auth-brand .auth-lead { color: rgba(255, 255, 255, .86); font-size: 1rem; max-width: 460px; }
.auth-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.auth-trust li { display: flex; gap: .8rem; align-items: flex-start; font-size: .9063rem; color: rgba(255, 255, 255, .92); }
.auth-trust .bi { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 1rem; }
.auth-trust strong { display: block; color: #fff; font-size: .9375rem; }
.auth-brand .auth-foot { font-size: .75rem; color: rgba(255, 255, 255, .65); }
.auth-brand .auth-stripe { width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff 0 60%, var(--nimwd-red) 60% 100%); }
@media (min-width: 992px) {
    .auth-brand { padding: 2.5rem 3rem; position: sticky; top: 0; height: 100vh; }
    .auth-brand .auth-logo img { height: 66px; } /* ~180px wide */
}
@media (max-width: 991.98px) {
    .auth-brand .auth-hide-mobile { display: none !important; }
    .auth-brand h2 { font-size: 1.35rem; margin: 1rem 0 .25rem !important; }
    .auth-brand .auth-lead { font-size: .875rem; margin: 0 !important; }
}
.auth-main { display: flex; flex-direction: column; min-width: 0; background: var(--nimwd-bg); background: linear-gradient(180deg, #F8FAF9, #F2F6F3); }
.auth-main .auth-topnav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1rem 0; }
@media (min-width: 768px) { .auth-main .auth-topnav { padding: 1.5rem 2.5rem 0; } }
.auth-main .auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem 2.5rem; }
@media (min-width: 768px) { .auth-main .auth-body { padding: 2rem 2.5rem 3rem; } }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--nimwd-border); border-radius: var(--nimwd-radius-xl); box-shadow: var(--nimwd-shadow-lg); padding: 1.5rem; }
@media (min-width: 576px) { .auth-card { padding: 2.25rem; } }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.auth-card .auth-sub { color: var(--nimwd-muted); font-size: .9375rem; }
.auth-card .form-control { padding: .68rem .9rem; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-field .pw-toggle {
    position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 8px;
    background: transparent; color: var(--nimwd-muted); display: inline-flex; align-items: center; justify-content: center;
}
.password-field .pw-toggle:hover { background: #F1F5F2; color: var(--nimwd-ink); }
.password-field .pw-toggle:focus-visible { outline: 2px solid var(--nimwd-green); outline-offset: 0; }
.password-field .form-control.is-invalid { background-position: right 3rem center; padding-right: 5rem; }
.form-section-title { display: flex; align-items: center; gap: .6rem; font-size: .9375rem; font-weight: 800; color: var(--nimwd-ink); margin-bottom: 1rem; }
.form-section-title .num { width: 26px; height: 26px; border-radius: 8px; background: var(--nimwd-green-soft); color: var(--nimwd-green); display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 800; }

/* Register type picker */
.type-option {
    cursor: pointer; position: relative; height: 100%;
    border: 1.5px solid var(--nimwd-border); border-radius: 16px; padding: 1rem 1rem 1rem 1rem;
    display: flex !important; gap: .85rem; align-items: flex-start; background: #fff;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.type-option:hover { border-color: var(--nimwd-green-300); }
.type-option .type-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #F1F5F2; color: var(--nimwd-green); }
.type-option .bi { font-size: 1.3rem; color: var(--nimwd-green); }
.type-option .type-check { position: absolute; top: .8rem; right: .8rem; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--nimwd-border-strong); background: #fff; }
.btn-check:checked + .type-option { border-color: var(--nimwd-green); background: #F4FAF6; box-shadow: 0 0 0 3px rgba(11, 107, 58, .12); }
.btn-check:checked + .type-option .type-icon { background: var(--nimwd-green); }
.btn-check:checked + .type-option .type-icon .bi { color: #fff; }
.btn-check:checked + .type-option .type-check { border-color: var(--nimwd-green); background: var(--nimwd-green) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") center/14px no-repeat; }
.btn-check:focus-visible + .type-option { outline: 3px solid var(--nimwd-green); outline-offset: 2px; }

/* Location picker (visual only) ------------------------------------------ */
.location-picker .lp-map { width: 100%; border-radius: 12px; border: 1px solid var(--nimwd-border); z-index: 0; overflow: hidden; }
.location-picker .lp-status { font-size: .8125rem; }
.leaflet-container { font-family: var(--bs-body-font-family); }
.leaflet-bar { border: 1px solid var(--nimwd-border) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--nimwd-shadow-sm) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--nimwd-shadow-lg); }

/* Print ------------------------------------------------------------------ */
@media print {
    .app-sidebar, .app-topbar, .app-footer { display: none !important; }
    .app-main { margin: 0 !important; }
    .card { box-shadow: none; }
}

/* Inline code (passport / reference numbers) */
code { color: var(--nimwd-ink); background: #F1F4F2; border: 1px solid var(--nimwd-border); padding: .1rem .4rem; border-radius: 6px; font-size: .8125rem; }
pre code { border: 0; padding: 0; background: transparent; }
