:root {
    --nfr-navy: #002147;
    --nfr-navy-2: #0b3a7a;
    --nfr-ink: #0f172a;
    --nfr-muted: #64748b;
    --nfr-border: #cbd5e1;
    --nfr-bg: #eef2f7;
    --nfr-paper: #ffffff;
    --nfr-green: #15803d;
    --nfr-danger: #b91c1c;
    --nfr-warn: #b45309;
    --nfr-radius: 14px;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--nfr-ink);
    background:
        radial-gradient(circle at top left, rgba(11, 58, 122, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, var(--nfr-bg) 100%);
    min-height: 100vh;
}
body.nfr-app {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(11, 58, 122, 0.08), transparent 38%),
        linear-gradient(180deg, #f8fafc 0%, #e8eef6 100%);
}
a { color: var(--nfr-navy-2); text-decoration: none; }
.nfr-container { width: min(1600px, calc(100% - 3rem)); margin: 0 auto; }

/* App header — same SSO pill style as auth pages */
.nfr-app-header-wrap {
    background: linear-gradient(135deg, #00152e 0%, #002147 55%, #0b3a7a 100%);
    border-bottom: 2px solid #c4a035;
    box-shadow: 0 8px 24px rgba(0, 21, 46, 0.25);
    position: sticky;
    top: 0;
    z-index: 60;
}
.nfr-app-header {
    width: min(1600px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 0.85rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nfr-app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}
.nfr-app-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 4px;
    flex-shrink: 0;
}
.nfr-app-logo-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.nfr-app-brand strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}
.nfr-app-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.1rem;
}
.nfr-app-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nfr-app-nav a,
.nfr-app-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nfr-app-nav a:hover,
.nfr-app-nav-btn:hover,
.nfr-app-nav a.is-active {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(147, 197, 253, 0.5);
    color: #fff;
}
.nfr-app-nav a.is-active {
    background: #93c5fd;
    border-color: #93c5fd;
    color: #002147;
}
.nfr-app-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #bbf7d0;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(34, 197, 94, 0.4);
}
.nfr-app-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.nfr-inline-form { display: inline; margin: 0; }

.nfr-main {
    padding: 1.75rem 0 3rem;
    min-height: calc(100vh - 230px);
}
.nfr-footer {
    padding: 1.25rem 0 2rem;
    color: var(--nfr-muted);
    font-size: 0.85rem;
}
.nfr-card {
    background: var(--nfr-paper);
    border: 1px solid var(--nfr-border);
    border-radius: var(--nfr-radius);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.06);
    padding: 1.25rem 1.4rem;
}
.nfr-card-head h1, .nfr-card-head h2, .nfr-page-head h1 {
    margin: 0 0 0.35rem;
    color: var(--nfr-navy);
}
.nfr-card-head p, .nfr-page-head p, .nfr-muted { color: var(--nfr-muted); margin: 0; }
.nfr-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.nfr-auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.nfr-auth-card { width: min(440px, 100%); }
.nfr-auth-card-wide { width: min(780px, 100%); }
.nfr-form { display: grid; gap: 0.65rem; margin-top: 1.25rem; }
.nfr-label { font-weight: 700; font-size: 0.9rem; }
.nfr-input {
    width: 100%;
    border: 1px solid var(--nfr-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: #f8fafc;
}
.nfr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 10px;
    background: var(--nfr-green);
    color: #fff;
    font-weight: 800;
    padding: 0.8rem 1.1rem;
    cursor: pointer;
}
.nfr-is-hidden,
[hidden].nfr-btn,
.nfr-btn[hidden] {
    display: none !important;
}
.nfr-btn-sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }
.nfr-btn-navy {
    background: var(--nfr-navy);
    color: #fff;
}
.nfr-btn-navy:hover { filter: brightness(1.08); }
.nfr-btn-outline {
    background: #fff;
    color: #b91c1c;
    border: 1.5px solid #b91c1c;
    box-shadow: none;
    width: auto;
    font-weight: 800;
}
.nfr-btn-outline:hover {
    background: #fef2f2;
    color: #991b1b;
    border-color: #991b1b;
    filter: none;
}
.nfr-btn-outline i {
    color: inherit;
}
.nfr-adv-pdf-wrap {
    margin-top: 0.65rem;
    display: grid;
    gap: 0.35rem;
    justify-items: start;
}
.nfr-adv-pdf-wrap.nfr-is-hidden,
.nfr-adv-pdf-wrap[hidden] {
    display: none !important;
}
.nfr-btn-gold {
    background: #b45309;
    color: #fff;
}
.nfr-btn-gold:hover { filter: brightness(1.08); }
.nfr-btn-add {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
}
.nfr-btn-add:hover {
    background: #ffedd5;
    color: #7c2d12;
}
.nfr-btn-block { width: 100%; }
.nfr-alert {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.nfr-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.nfr-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.nfr-alert-warning { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.nfr-alert-info { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }
.nfr-eq-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 4px solid #ea580c;
    border-radius: 10px;
    color: #9a3412;
}
.nfr-eq-warning > i {
    font-size: 1.25rem;
    color: #ea580c;
    line-height: 1.4;
    flex-shrink: 0;
}
.nfr-eq-warning p {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
}

.nfr-toast-stack {
    position: fixed;
    top: 5.5rem;
    right: 1.25rem;
    z-index: 1300;
    display: grid;
    gap: 0.65rem;
    width: min(520px, calc(100vw - 2rem));
    pointer-events: none;
}
.nfr-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.45;
    animation: nfr-toast-in 0.28s ease-out;
}
.nfr-toast i { font-size: 1.4rem; margin-top: 0.05rem; }
.nfr-toast-close {
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 1.15rem;
}
.nfr-toast-close:hover { opacity: 1; }
.nfr-toast-success { background: #ecfdf5; color: #166534; border-color: #86efac; }
.nfr-toast-error { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.nfr-toast-warning { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.nfr-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
@keyframes nfr-toast-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.nfr-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nfr-input-readonly { background: #e2e8f0; cursor: not-allowed; }
.nfr-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nfr-alert-info { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }
.nfr-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.nfr-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.nfr-form-grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.nfr-form-grid .nfr-input,
.nfr-form-grid select,
.nfr-form-grid input {
    width: 100%;
    border: 1px solid var(--nfr-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: #f8fafc;
}
.nfr-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    margin: 0.35rem 0 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    background: #f8fafc;
}
.nfr-summary > div { display: grid; gap: 0.2rem; justify-items: start; }
.nfr-summary strong {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nfr-muted);
}
.nfr-summary span { font-weight: 700; color: var(--nfr-ink); }
.nfr-summary .nfr-chip {
    width: fit-content;
    max-width: 100%;
}
.nfr-mb { margin-bottom: 1rem; }
.nfr-btn-ghost {
    background: transparent;
    color: var(--nfr-navy);
    border: 1px solid var(--nfr-border);
}
.nfr-btn-ghost:hover { background: #f8fafc; }
.nfr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.nfr-actions a { font-weight: 700; }
.nfr-table td:last-child {
    width: 1%;
    vertical-align: middle;
}
.nfr-admit-menu { position: relative; display: inline-flex; }
.nfr-admit-menu > .nfr-btn { white-space: nowrap; }
.nfr-admit-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}
.nfr-admit-menu-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    min-width: 240px;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.nfr-admit-menu.is-open .nfr-admit-menu-list { display: grid; gap: 0.2rem; }
.nfr-admit-menu.is-open > .nfr-btn { filter: brightness(0.96); }
.nfr-admit-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: var(--nfr-navy);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.nfr-admit-menu-list a span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.nfr-admit-menu-list a:hover {
    background: #f1f5f9;
}
.nfr-link-list { display: grid; gap: 0.55rem; margin: 1rem 0; }
.nfr-link-list a {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--nfr-border);
    border-radius: 10px;
    font-weight: 700;
    color: var(--nfr-ink);
    background: #f8fafc;
}
.nfr-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.nfr-module-card {
    position: relative;
    display: grid;
    gap: 0.35rem;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--nfr-ink);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    overflow: hidden;
}
.nfr-module-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}
.nfr-module-card:hover {
    border-color: rgba(11, 58, 122, 0.35);
    box-shadow: 0 14px 28px rgba(0, 33, 71, 0.1);
    transform: translateY(-2px);
}
.nfr-module-card:hover::before {
    background: linear-gradient(180deg, #0b3a7a, #c4a035);
}
.nfr-module-card.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}
.nfr-module-card strong { color: var(--nfr-navy); font-size: 1.02rem; }
.nfr-module-card > span:nth-of-type(2) {
    color: var(--nfr-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    padding-right: 1.25rem;
}
.nfr-module-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--nfr-navy-2);
    font-size: 1.15rem;
    margin-bottom: 0.2rem;
    border: 1px solid rgba(147, 197, 253, 0.55);
}
.nfr-module-go {
    position: absolute;
    right: 0.85rem;
    bottom: 0.85rem;
    color: #94a3b8;
    font-size: 1rem;
    transition: color 0.15s ease, transform 0.15s ease;
}
.nfr-module-card:hover .nfr-module-go {
    color: var(--nfr-navy-2);
    transform: translateX(2px);
}

/* Home welcome + glass panels */
.nfr-home-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(125deg, #00152e 0%, #002147 48%, #0b3a7a 100%);
    border: 1px solid rgba(196, 160, 53, 0.45);
    box-shadow: 0 18px 40px rgba(0, 21, 46, 0.22);
    position: relative;
    overflow: hidden;
}
.nfr-home-welcome::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 160, 53, 0.22), transparent 68%);
    pointer-events: none;
}
.nfr-home-welcome-copy,
.nfr-home-welcome-actions {
    position: relative;
    z-index: 1;
}
.nfr-home-kicker {
    display: inline-block;
    margin: 0 0 0.55rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fde68a;
    background: rgba(196, 160, 53, 0.18);
    border: 1px solid rgba(196, 160, 53, 0.4);
}
.nfr-home-welcome h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.nfr-home-welcome p {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-weight: 600;
    max-width: 36rem;
}
.nfr-home-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    flex-shrink: 0;
}
.nfr-btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}
.nfr-btn-light:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.nfr-btn-gold {
    background: linear-gradient(135deg, #d4af37, #c4a035);
    color: #1a1408;
    box-shadow: 0 8px 18px rgba(196, 160, 53, 0.35);
}
.nfr-btn-gold:hover { filter: brightness(1.05); color: #1a1408; }
.nfr-card-glass {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    padding: 1.4rem 1.6rem 1.6rem;
}
.nfr-empty-panel {
    display: grid;
    gap: 0.55rem;
    justify-items: start;
    padding: 0.85rem 0 0.25rem;
}
.nfr-empty-panel > i {
    font-size: 1.6rem;
    color: #94a3b8;
}
.nfr-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.nfr-stage-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    background: #fff;
}
.nfr-stage-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center; flex-shrink: 0;
    background: rgba(11, 58, 122, 0.08);
    color: var(--nfr-navy-2);
    font-size: 1.1rem;
}
.nfr-stage-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nfr-muted);
    margin-bottom: 0.2rem;
}
.nfr-stage-score {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.nfr-table-wrap { overflow-x: auto; }
.nfr-table { width: 100%; border-collapse: collapse; }
.nfr-table th, .nfr-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--nfr-border);
    vertical-align: top;
}
.nfr-table th { color: var(--nfr-muted); font-size: 0.85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; }
.nfr-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 800;
}
.nfr-chip-success { background: #dcfce7; color: #166534; }
.nfr-chip-danger { background: #fee2e2; color: #991b1b; }
.nfr-card-list { display: grid; gap: 0.85rem; }
.nfr-job-card { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.nfr-job-meta { display: grid; gap: 0.35rem; text-align: right; color: var(--nfr-muted); font-weight: 600; }
.nfr-auth-links { margin-top: 1rem; display: grid; gap: 0.35rem; color: var(--nfr-muted); font-size: 0.9rem; }
.nfr-select { appearance: auto; cursor: pointer; }
.nfr-file { padding: 0.55rem 0.9rem; background: #fff; }
.nfr-field-hint { margin: 0.25rem 0 0; color: var(--nfr-muted); font-size: 0.82rem; font-weight: 600; }
.nfr-form-section {
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    padding: 1rem 1.1rem 1.1rem;
    margin: 0;
}
.nfr-form-section legend {
    padding: 0 0.35rem;
    font-weight: 800;
    color: var(--nfr-navy);
}
.nfr-register-form { gap: 1rem; }
.nfr-grid-span-2 { grid-column: 1 / -1; }
.nfr-error-list { margin: 0; padding-left: 1.1rem; }
.nfr-inline-form { display: inline; }
.nfr-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.9rem; }
.nfr-form label span { color: var(--nfr-ink); }
.nfr-form input, .nfr-form select, .nfr-form textarea {
    width: 100%;
    border: 1px solid var(--nfr-border);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: #f8fafc;
    font-weight: 500;
}
.nfr-step-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}
.nfr-step-nav a {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--nfr-border);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--nfr-ink);
    background: #fff;
}
.nfr-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.nfr-input-readonly { background: #e2e8f0 !important; font-weight: 700; color: var(--nfr-ink); }
.nfr-form-actions, .nfr-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.nfr-form-actions {
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nfr-border);
}
.nfr-alert-info { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }
.nfr-section-sub { margin: 0 0 0.85rem; font-size: 0.85rem; }
.nfr-nested-form { margin-top: 0; gap: 0.75rem; }
.nfr-address-grid { margin-top: 0.25rem; }
.nfr-form .nfr-check-label {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.nfr-check-label small { display: block; color: var(--nfr-muted); font-weight: 600; margin-top: 0.15rem; }
.nfr-form input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    padding: 0;
    accent-color: var(--nfr-navy-2);
}
.nfr-empty-state { text-align: center; padding: 2rem 1.5rem; }
.nfr-empty-state i { font-size: 2.2rem; color: var(--nfr-warn); }
.nfr-empty-state h2 { margin: 0.75rem 0 0.5rem; color: var(--nfr-navy); }
.nfr-empty-state .nfr-actions { justify-content: center; margin-top: 1.25rem; }
.nfr-card-head-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.nfr-app-select-form { margin-top: 0; margin-bottom: 1.25rem; }
.nfr-picker-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    background: #f8fafc;
    color: inherit;
}
.nfr-picker-card:hover { border-color: var(--nfr-navy-2); }
.nfr-picker-card .mono { margin-bottom: 0.35rem; }
.nfr-picker-card strong { display: block; margin-bottom: 0.2rem; }
.nfr-profile-banner {
    display: flex;
    gap: 1.15rem;
    align-items: center;
    margin-bottom: 1rem;
}
.nfr-profile-avatar {
    width: 88px; height: 88px; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--nfr-border);
    background: #e2e8f0;
    display: grid; place-items: center;
    font-weight: 800; font-size: 1.6rem; color: var(--nfr-navy);
    flex-shrink: 0;
}
.nfr-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nfr-profile-identity {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}
.nfr-profile-identity strong {
    font-size: 1.2rem;
    color: var(--nfr-navy);
}
.nfr-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    align-items: center;
}
.nfr-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--nfr-muted);
    font-weight: 600;
    font-size: 0.92rem;
}
.nfr-profile-meta i { color: var(--nfr-navy); font-size: 1rem; }
.nfr-profile-docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.nfr-profile-doc-card {
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
    display: grid;
    gap: 0.65rem;
}
.nfr-profile-doc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.nfr-profile-doc-head strong { color: var(--nfr-navy); }
.nfr-profile-doc-card .nfr-upload-preview { margin-bottom: 0; min-height: 140px; display: grid; place-items: center; }
.nfr-upload-preview {
    border: 1px dashed var(--nfr-border);
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
    background: #f8fafc;
    text-align: center;
}
.nfr-upload-preview img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--nfr-border);
    background: #fff;
}
.nfr-upload-preview-sign img { max-width: 280px; max-height: 100px; }
.nfr-app-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}
.nfr-app-picker-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    background: #f8fafc;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.nfr-app-picker-card:hover {
    border-color: var(--nfr-navy-2);
    transform: translateY(-2px);
}
.nfr-app-picker-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}
.nfr-app-picker-cta {
    margin-top: 0.55rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--nfr-border);
    color: var(--nfr-navy-2);
    font-weight: 700;
    font-size: 0.85rem;
}
.nfr-req-box {
    border: 1px solid rgba(21, 128, 61, 0.28);
    background: rgba(220, 252, 231, 0.55);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}
.nfr-req-box-compact { margin-bottom: 0.85rem; }
.nfr-req-list {
    margin: 0.65rem 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.4rem;
}
.nfr-req-list li {
    color: #166534;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.45;
}
.nfr-req { color: var(--nfr-danger); }
.nfr-field-error {
    margin: 0.25rem 0 0;
    color: var(--nfr-danger);
    font-size: 0.82rem;
    font-weight: 700;
}
.nfr-input-error { border-color: #fca5a5 !important; background: #fef2f2 !important; }
.nfr-note-danger {
    margin: 0.35rem 0 0.85rem;
    color: var(--nfr-danger);
    font-weight: 700;
    font-size: 0.84rem;
    font-style: italic;
}
/* Under CGPA row: left-aligned with fields, full content width like the form note */
.nfr-form-grid > .nfr-eq-cgpa-note {
    grid-column: 1 / -1;
    margin: -0.35rem 0 0;
    line-height: 1.45;
}
.nfr-radio-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nfr-border);
}
.nfr-radio-row-inline {
    margin-top: 0.45rem;
    padding-top: 0;
    border-top: none;
    gap: 1.25rem;
}
.nfr-label-text {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--nfr-ink, #1a2332);
}
.nfr-radio {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    grid-template-columns: none !important;
    cursor: pointer;
}
.nfr-radio input { width: auto !important; margin: 0; padding: 0; }
.nfr-actions-end {
    justify-content: flex-end;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nfr-border);
}
.nfr-section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin: 0.5rem 0 0.85rem;
}
.nfr-empty-icon { font-size: 2.4rem; color: var(--nfr-warn); display: block; margin-bottom: 0.35rem; }
.nfr-progress-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    font-weight: 700;
    font-size: 0.9rem;
}
.nfr-progress-track {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.nfr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--nfr-navy), var(--nfr-navy-2));
}
.nfr-rules {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #9a3412;
    font-weight: 600;
    font-size: 0.88rem;
}
.nfr-rules li::marker { color: #c2410c; }
.nfr-doc-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}
.nfr-doc-head strong { color: var(--nfr-navy); }
.nfr-doc-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
}
.nfr-doc-inline-note {
    color: var(--nfr-danger);
    font-size: 0.92rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.35;
}
.nfr-doc-form { margin-top: 0; }
.nfr-chip-ok { background: #dcfce7; color: #166534; }
.nfr-chip-warn { background: #ffedd5; color: #9a3412; }
.nfr-check {
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    font-weight: 600 !important;
}
.nfr-check input { width: auto !important; margin-top: 0.25rem; }
.nfr-review-certify {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.nfr-review-certify .nfr-check {
    margin: 0;
}
.nfr-review-certify span {
    line-height: 1.55;
    font-weight: 600;
    color: #334155;
}
.nfr-review-certify input[type="checkbox"]:disabled {
    opacity: 1;
    accent-color: #166534;
    cursor: default;
}
.nfr-btn-danger { color: var(--nfr-danger); border-color: #fca5a5; }
.nfr-review-section { border-left: 4px solid var(--nfr-border); }
.nfr-review-section.is-complete { border-left-color: var(--nfr-green); }
.nfr-review-section.is-incomplete { border-left-color: var(--nfr-warn); }
.nfr-review-section.is-na { border-left-color: #94a3b8; }
.nfr-review-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.nfr-review-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--nfr-navy);
}
.nfr-group-title {
    margin: 1rem 0 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nfr-muted);
}
.nfr-def-list {
    border: 1px solid var(--nfr-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.nfr-def-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-top: 1px solid var(--nfr-border);
}
.nfr-def-row:first-child { border-top: 0; }
.nfr-def-row:nth-child(even) { background: #f8fafc; }
.nfr-def-label { font-size: 0.82rem; font-weight: 700; color: #475569; }
.nfr-def-value { font-weight: 600; word-break: break-word; }

/* —— Shared mobile nav —— */
.nfr-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.45rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nfr-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}
body.nfr-nav-open .nfr-nav-backdrop { display: block; }
body.nfr-nav-open { overflow: hidden; }

/* —— Apply post panel —— */
.nfr-panel {
    background: var(--nfr-paper);
    border: 1px solid var(--nfr-border);
    border-radius: var(--nfr-radius);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.06);
    padding: 1.35rem 1.45rem;
}
.nfr-apply-panel { width: 100%; }
.nfr-apply-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}
.nfr-apply-main { min-width: 0; }
.nfr-apply-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 0.9rem;
}
.nfr-panel-head { margin-bottom: 1.1rem; }
.nfr-panel-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--nfr-navy);
}
.nfr-panel-head p { font-size: 0.88rem; }
.nfr-apply-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem 1.25rem;
    align-items: start;
}
.nfr-req { color: var(--nfr-danger); }
.nfr-select-wrap { position: relative; display: block; }
.nfr-select-wrap .nfr-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.5rem;
    background: #fff;
    min-height: 48px;
    font-weight: 600;
}
.nfr-select-wrap .nfr-select:focus {
    outline: none;
    border-color: var(--nfr-navy-2);
    box-shadow: 0 0 0 3px rgba(11, 58, 122, 0.12);
}
.nfr-select-wrap > i {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--nfr-muted);
    font-size: 1.15rem;
}
.nfr-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
}
.nfr-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--nfr-border);
    color: var(--nfr-muted);
    font-weight: 700;
    font-size: 0.86rem;
}
.nfr-steps li span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}
.nfr-steps li.is-current {
    background: var(--nfr-navy);
    border-color: var(--nfr-navy);
    color: #fff;
}
.nfr-steps li.is-current span {
    background: #c4a035;
    color: #1a1408;
}
.nfr-steps li.is-done {
    border-color: #86efac;
    background: #f0fdf4;
    color: var(--nfr-green);
}
.nfr-steps li.is-done span {
    background: var(--nfr-green);
    color: #fff;
}

.nfr-app-stepper-wrap {
    margin: 0 0 1.25rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--nfr-border);
    border-radius: 14px;
    overflow-x: auto;
}
.nfr-app-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max(100%, 640px);
}
.nfr-app-step {
    position: relative;
    flex: 1 1 0;
    min-width: 7.5rem;
    text-align: center;
}
.nfr-app-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.05rem;
    left: calc(50% + 1.1rem);
    right: calc(-50% + 1.1rem);
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}
.nfr-app-step.is-done:not(:last-child)::after {
    background: var(--nfr-green);
}
.nfr-app-step-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.35rem;
    color: inherit;
    text-decoration: none;
}
a.nfr-app-step-link:hover .nfr-app-step-label {
    color: var(--nfr-navy);
}
.nfr-app-step-node {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}
.nfr-app-step-label {
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.25;
    color: #64748b;
}
.nfr-app-step.is-done .nfr-app-step-node {
    background: var(--nfr-green);
    color: #fff;
    box-shadow: 0 0 0 1px #86efac;
}
.nfr-app-step.is-done .nfr-app-step-label {
    color: var(--nfr-green);
}
.nfr-app-step.is-current .nfr-app-step-node {
    background: var(--nfr-navy);
    color: #fff;
    box-shadow: 0 0 0 2px #c4a035;
}
.nfr-app-step.is-current .nfr-app-step-label {
    color: var(--nfr-navy);
}
.nfr-app-step.is-pending .nfr-app-step-node {
    background: #f8fafc;
    color: #94a3b8;
}
@media (max-width: 900px) {
    .nfr-app-stepper { min-width: 720px; }
    .nfr-app-step-label { font-size: 0.7rem; }
}

/* Payment gateway choice cards */
.nfr-gateway-group {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
}
.nfr-gateway-group legend {
    padding: 0;
    margin-bottom: 0.5rem;
}
.nfr-gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}
.nfr-gateway-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--nfr-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nfr-gateway-card:hover { border-color: #94a3b8; }
.nfr-gateway-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nfr-gateway-body { display: grid; gap: 0.1rem; }
.nfr-gateway-name {
    font-weight: 800;
    color: var(--nfr-navy);
}
.nfr-gateway-desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--nfr-muted);
}
.nfr-gateway-card > i {
    margin-left: auto;
    font-size: 1.2rem;
    color: #cbd5e1;
}
.nfr-gateway-card.is-selected {
    border-color: var(--nfr-navy-2);
    background: #f5f9ff;
    box-shadow: 0 0 0 3px rgba(11, 58, 122, 0.1);
}
.nfr-gateway-card.is-selected > i { color: var(--nfr-green); }
.nfr-gateway-card:focus-within {
    outline: 2px solid var(--nfr-navy-2);
    outline-offset: 2px;
}

/* Result banners */
.nfr-result-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.15rem 1.35rem;
    border-radius: var(--nfr-radius);
    border: 1px solid var(--nfr-border);
    background: var(--nfr-paper);
    box-shadow: 0 12px 30px rgba(0, 33, 71, 0.06);
}
.nfr-result-card > i { font-size: 1.6rem; line-height: 1.2; flex-shrink: 0; }
.nfr-result-card h2 { margin: 0 0 0.25rem; font-size: 1.1rem; color: var(--nfr-navy); }
.nfr-result-card p { margin: 0 0 0.85rem; color: var(--nfr-muted); font-weight: 600; }
.nfr-result-card.is-success { border-left: 4px solid var(--nfr-green); }
.nfr-result-card.is-success > i { color: var(--nfr-green); }
.nfr-result-card.is-error { border-left: 4px solid var(--nfr-danger); }
.nfr-result-card.is-error > i { color: var(--nfr-danger); }

.nfr-submit-success {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
}
.nfr-submit-success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: var(--nfr-green);
    font-size: 3rem;
    line-height: 1;
    border: 1px solid #86efac;
}
.nfr-submit-success h2 {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
    color: var(--nfr-navy);
    line-height: 1.35;
}
.nfr-submit-success-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
@media (max-width: 560px) {
    .nfr-submit-success-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .nfr-submit-success-actions .nfr-btn {
        width: 100%;
    }
}
.nfr-text-center { text-align: center; }
.nfr-note {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}
.nfr-note i { font-size: 1.05rem; flex-shrink: 0; }
.nfr-note-warn {
    background: #fff7ed;
    border: 2px solid #fb923c;
    color: #9a3412;
    margin-top: 0;
    font-size: 0.95rem;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}
.nfr-note-warn i {
    color: #ea580c;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}
.nfr-declaration-intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}
.nfr-declaration-list {
    display: grid;
    gap: 1rem;
}
.nfr-declaration-item {
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.nfr-declaration-question {
    display: grid;
    gap: 0.75rem;
}
.nfr-declaration-question .nfr-label-text {
    display: block;
    line-height: 1.5;
}
.nfr-declaration-description {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed #cbd5e1;
}
.nfr-declaration-description textarea {
    width: 100%;
}
.nfr-declaration-certify {
    margin-top: 1.1rem;
    padding: 1rem 1.1rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    align-items: flex-start;
}
.nfr-declaration-certify span {
    line-height: 1.55;
    font-weight: 600;
    color: #9a3412;
}
.nfr-summary-list { margin: 0; display: grid; gap: 0.55rem; }
.nfr-summary-row {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed var(--nfr-border);
}
.nfr-summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.nfr-summary-row dt {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nfr-muted);
}
.nfr-summary-row dd {
    margin: 0;
    font-weight: 700;
    color: var(--nfr-navy);
    word-break: break-word;
}
.nfr-summary-row dd.is-empty { color: #94a3b8; font-weight: 600; }
.nfr-fee-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid var(--nfr-border);
}
.nfr-fee-box-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--nfr-muted);
}
.nfr-apply-aside .nfr-fee-amount { font-size: 1.5rem; }
.nfr-apply-aside .nfr-btn { min-height: 48px; }
.nfr-field { display: grid; gap: 0.4rem; }
.nfr-fee-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--nfr-border);
    border-radius: 12px;
    background: #f8fafc;
}
.nfr-fee-summary strong {
    display: block;
    color: var(--nfr-navy);
    margin-bottom: 0.2rem;
}
.nfr-fee-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--nfr-navy);
    white-space: nowrap;
}
.nfr-apply-actions {
    border-top: 0;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
}
.nfr-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nfr-form-grid.nfr-exp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: start;
}
.nfr-form-grid.nfr-exp-grid > label { align-content: start; }
.nfr-form-grid.nfr-exp-grid .nfr-span-2 { grid-column: span 2; }
.prev-row > .nfr-btn { margin-top: 1rem; }
.nfr-prev-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.nfr-doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 1rem;
    align-items: start;
}
.nfr-doc-preview-col { position: sticky; top: 1rem; }
.nfr-doc-preview-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: calc(100vh - 6rem);
    min-height: 560px;
}
.nfr-doc-preview-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #f8fafc;
}

@media (max-width: 1080px) {
    .nfr-doc-layout { grid-template-columns: 1fr; }
    .nfr-doc-preview-col { position: static; }
    .nfr-doc-preview-card { height: 75vh; }
    /* Preview is moved directly under the previewed document card by script */
    .nfr-doc-layout:not(.has-preview) .nfr-doc-preview-col { display: none; }
}

@media (max-width: 1200px) {
    .nfr-form-grid.nfr-exp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .nfr-form-grid.nfr-exp-grid { grid-template-columns: 1fr; }
    .nfr-form-grid.nfr-exp-grid .nfr-span-2 { grid-column: span 1; }
}

@media (max-width: 1080px) {
    .nfr-apply-layout { grid-template-columns: 1fr; }
    .nfr-apply-aside { position: static; }
}

@media (max-width: 620px) {
    .nfr-steps { gap: 0.4rem; }
    .nfr-steps li { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

@media (max-width: 900px) {
    .nfr-app-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfr-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nfr-nav-toggle { display: inline-flex; }
    .nfr-app-header { flex-wrap: nowrap; }
    .nfr-app-brand strong { font-size: 0.98rem; }
    .nfr-app-brand small { font-size: 0.72rem; }
    .nfr-app-nav {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.5rem 0;
        background: linear-gradient(180deg, #00152e, #0b3a7a);
        border-bottom: 2px solid #c4a035;
        box-shadow: 0 16px 28px rgba(0, 33, 71, 0.28);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    body.nfr-nav-open .nfr-app-nav { display: flex; }
    .nfr-app-nav a,
    .nfr-app-nav-btn {
        display: flex;
        width: 100%;
        text-align: left;
        padding: 0.95rem 1.25rem;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        min-height: 48px;
        box-shadow: none;
        background: transparent;
        justify-content: flex-start;
    }
    .nfr-app-nav a.is-active {
        background: rgba(147, 197, 253, 0.22);
        box-shadow: inset 3px 0 0 #93c5fd;
        color: #fff;
        border-color: transparent;
    }
    .nfr-app-nav .nfr-inline-form { display: block; width: 100%; }
    .nfr-app-status {
        margin: 0.65rem 1.25rem 0.5rem;
        justify-content: center;
        width: calc(100% - 2.5rem);
        box-sizing: border-box;
    }
}
@media (max-width: 800px) {
    .nfr-grid-2, .nfr-grid-3, .nfr-job-card, .nfr-form-grid, .nfr-summary, .nfr-stage-grid, .nfr-address-grid, .nfr-app-picker-grid { grid-template-columns: 1fr; display: grid; }
    .nfr-module-grid { grid-template-columns: 1fr; }
    .nfr-job-meta { text-align: left; }
    .nfr-page-head { flex-direction: column; }
    .nfr-home-welcome {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.15rem 1.15rem 1.25rem;
    }
    .nfr-home-welcome-actions {
        width: 100%;
        justify-content: stretch;
    }
    .nfr-home-welcome-actions .nfr-btn {
        flex: 1;
    }
    .nfr-profile-banner { flex-direction: column; text-align: center; }
    .nfr-profile-meta { justify-content: center; }
    .nfr-profile-docs { grid-template-columns: 1fr; }
    .nfr-form-actions { justify-content: stretch; }
    .nfr-form-actions .nfr-btn, .nfr-form-actions .nfr-btn-ghost { width: 100%; }
    .nfr-actions-end { justify-content: stretch; }
    .nfr-actions-end .nfr-btn, .nfr-actions-end .nfr-btn-ghost { width: 100%; }
    .nfr-table td:last-child { width: auto; }
    .nfr-admit-menu { width: 100%; }
    .nfr-admit-menu > .nfr-btn { width: 100%; }
    .nfr-admit-menu-list { left: 0; right: 0; min-width: 0; }
    .nfr-def-row { grid-template-columns: 1fr; }
    .nfr-fee-summary { flex-direction: column; align-items: flex-start; }
    .nfr-apply-panel { padding: 1.15rem 1rem; }
    .nfr-apply-form { grid-template-columns: 1fr; }
    .nfr-apply-layout { grid-template-columns: 1fr; }
    .nfr-apply-aside { position: static; }
    .nfr-container { width: calc(100% - 1.5rem); }
    .nfr-app-header { width: calc(100% - 1.5rem); }
    .nfr-card-glass { padding: 1.15rem 1rem 1.25rem; }
}
@media (min-width: 901px) {
    body.nfr-nav-open { overflow: auto; }
    .nfr-nav-backdrop { display: none !important; }
}

.nfr-confirm-dialog {
    border: 0;
    padding: 0;
    border-radius: 16px;
    width: min(560px, calc(100vw - 1.5rem));
    max-height: min(86vh, 760px);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.nfr-fee-confirm-dialog {
    width: min(480px, calc(100vw - 1.5rem));
}
.nfr-confirm-dialog::backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.nfr-confirm-dialog-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 760px);
}
.nfr-confirm-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}
.nfr-confirm-dialog-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0b3a7a;
}
.nfr-confirm-dialog-head p {
    margin: 0.35rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
}
.nfr-confirm-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 1;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.nfr-confirm-close:hover { background: #e2e8f0; }
.nfr-confirm-dialog-body {
    padding: 1rem 1.35rem 0.35rem;
    overflow: auto;
}
.nfr-fee-confirm-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-left: 4px solid #ea580c;
    border-radius: 8px;
}
.nfr-fee-confirm-message > i {
    font-size: 1.25rem;
    color: #ea580c;
    flex-shrink: 0;
    line-height: 1.45;
}
.nfr-fee-confirm-warning {
    margin: 0;
    color: #9a3412;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.5;
}
.nfr-fee-confirm-reminder {
    margin: 0.45rem 0 0;
    color: #b45309;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}
.nfr-confirm-note {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}
.nfr-confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.2rem 1.15rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
@media (max-width: 560px) {
    .nfr-confirm-dialog-actions { justify-content: stretch; }
    .nfr-confirm-dialog-actions .nfr-btn,
    .nfr-confirm-dialog-actions .nfr-btn-ghost,
    .nfr-confirm-dialog-actions .nfr-btn-outline {
        width: 100%;
        min-width: 0;
    }
}
