:root {
    --ng-green: #b8f500;
    --ng-green-soft: #d8ff69;
    --ng-ink: #061009;
    --ng-panel: #0d1b12;
    --ng-panel-raised: #122417;
    --ng-line: rgba(126, 224, 119, .24);
    --ng-muted: #aec6b2;
    --ng-danger: #ff766f;
    --ng-warning: #ffd166;
    --ng-white: #f4fff5;
    color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    min-width: 320px;
    margin: 0;
    background: var(--ng-ink);
    color: var(--ng-white);
    font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 86% 7%, rgba(184, 245, 0, .16), transparent 21rem),
        radial-gradient(circle at 5% 55%, rgba(35, 130, 78, .16), transparent 25rem),
        linear-gradient(150deg, #07120b 0%, var(--ng-ink) 48%, #09150d 100%);
    content: "";
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(174, 247, 123, .13);
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 147px; height: auto; }
.nav-links, .header-actions, .button-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-links { color: #d2e7d5; font-size: 14px; }
.nav-links a { padding: 8px 9px; border-radius: 8px; }
.nav-links a:hover { background: rgba(184, 245, 0, .09); color: var(--ng-green-soft); }

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--ng-green);
    color: #071009;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.1px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 12px 25px rgba(139, 226, 0, .18); }
.button.secondary { border-color: var(--ng-line); background: rgba(7, 20, 11, .35); color: var(--ng-white); }
.button.secondary:hover { border-color: rgba(184, 245, 0, .56); box-shadow: none; }
.button.white { background: #fff; color: #111; }
.button:disabled { cursor: wait; opacity: .65; transform: none; }

.eyebrow { color: var(--ng-green); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ng-muted); }
.panel {
    border: 1px solid var(--ng-line);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(19, 38, 24, .94), rgba(10, 23, 14, .96));
    box-shadow: 0 24px 65px rgba(0, 0, 0, .18);
}
.section { padding: 84px 0; }
.section-heading { max-width: 690px; margin-bottom: 30px; }
.section-heading h2 { margin: 8px 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -1.8px; }
.section-heading p { margin: 0; color: var(--ng-muted); font-size: 17px; }
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icon-chip {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(184, 245, 0, .26);
    border-radius: 13px;
    background: rgba(184, 245, 0, .12);
    color: var(--ng-green);
    font-weight: 900;
}
.small-label { color: var(--ng-muted); font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }

.step-card, .info-card, .metric-card, .history-card, .document-card {
    padding: 22px;
    border: 1px solid var(--ng-line);
    border-radius: 20px;
    background: rgba(14, 31, 19, .74);
}
.step-number { color: var(--ng-green); font-size: 13px; font-weight: 900; letter-spacing: .11em; }
.step-card h3, .info-card h3 { margin: 13px 0 7px; font-size: 19px; }
.step-card p, .info-card p { margin: 0; color: var(--ng-muted); }

.form-shell { max-width: 910px; margin: 45px auto 78px; padding: 30px; }
.form-title { margin: 8px 0; font-size: clamp(29px, 4vw, 42px); line-height: 1.06; letter-spacing: -1.5px; }
.form-intro { max-width: 650px; margin: 0; color: var(--ng-muted); }
.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 30px 0; }
.progress-step { min-width: 0; padding: 11px 12px; border: 1px solid var(--ng-line); border-radius: 12px; color: var(--ng-muted); font-size: 13px; font-weight: 750; }
.progress-step.active { border-color: rgba(184, 245, 0, .65); background: rgba(184, 245, 0, .10); color: var(--ng-green-soft); }
.progress-step span { display: inline-grid; width: 21px; height: 21px; margin-right: 6px; place-items: center; border-radius: 50%; background: rgba(184, 245, 0, .16); color: var(--ng-green); font-size: 11px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.auth-choice { min-height: 168px; padding: 21px; border: 1px solid var(--ng-line); border-radius: 18px; background: rgba(7, 18, 10, .48); color: var(--ng-white); text-align: left; }
.auth-choice:hover { border-color: rgba(184, 245, 0, .62); background: rgba(184, 245, 0, .08); }
.auth-choice strong { display: block; margin: 15px 0 5px; font-size: 17px; }
.auth-choice span { color: var(--ng-muted); font-size: 14px; }
.form-section { margin-top: 26px; padding-top: 25px; border-top: 1px solid var(--ng-line); }
.form-section h2 { margin: 0 0 5px; font-size: 21px; }
.form-section > p { margin: 0 0 18px; color: var(--ng-muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { min-width: 0; color: #d9eddb; font-size: 13px; font-weight: 760; }
input, textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(97, 177, 110, .53);
    border-radius: 11px;
    outline: none;
    background: #09140c;
    color: #fff;
}
input:focus, textarea:focus { border-color: var(--ng-green); box-shadow: 0 0 0 3px rgba(184, 245, 0, .12); }
input[type=file] { padding: 9px; color: var(--ng-muted); font-size: 13px; }
textarea { min-height: 96px; resize: vertical; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--ng-muted); font-size: 13px; }
.terms-check input { width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--ng-green); }
.message { display: none; margin-top: 18px; padding: 13px 14px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; }
.message.ok, .message.info { display: block; border-color: rgba(101, 215, 124, .38); background: rgba(25, 104, 47, .35); color: #d8ffe0; }
.message.error { display: block; border-color: rgba(255, 118, 111, .38); background: rgba(128, 30, 35, .36); color: #ffe1df; }
.notice { padding: 15px; border: 1px solid rgba(255, 209, 102, .26); border-radius: 13px; background: rgba(126, 87, 13, .16); color: #ffe8a2; font-size: 14px; }

.portal-page { padding-bottom: 68px; }
.portal-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .55fr); gap: 16px; margin-top: 30px; }
.identity-card { padding: 26px; }
.identity-card h1 { margin: 7px 0 4px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1.5px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 99px; font-size: 12px; font-weight: 850; }
.status-badge.pending { color: var(--ng-warning); background: rgba(255, 209, 102, .08); }
.status-badge.approved { color: var(--ng-green-soft); background: rgba(184, 245, 0, .08); }
.status-badge.rejected { color: #ffaaa5; background: rgba(255, 118, 111, .08); }
.next-card { padding: 23px; }
.next-card h2 { margin: 10px 0 8px; font-size: 20px; }
.next-card p { margin: 0; color: var(--ng-muted); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric-card { padding: 18px; }
.metric-value { margin-top: 7px; color: var(--ng-green); font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -1px; }
.metric-note { color: var(--ng-muted); font-size: 12px; }
.dashboard-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 16px; }
.history-card h2, .document-card h2, .goal-card h2 { margin: 0 0 4px; font-size: 21px; }
.goal-card { padding: 22px; border: 1px solid var(--ng-line); border-radius: 20px; background: rgba(14, 31, 19, .74); }
.goal-row { margin-top: 18px; }
.goal-row:first-of-type { margin-top: 14px; }
.goal-title { display: flex; justify-content: space-between; gap: 12px; color: #e4f5e6; font-size: 14px; font-weight: 750; }
.goal-title small { color: var(--ng-muted); font-size: 12px; font-weight: 600; }
.progress-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.09); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7ebd11, var(--ng-green)); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 620px; border-collapse: collapse; }
th, td { padding: 13px 5px; border-bottom: 1px solid rgba(126, 224, 119, .16); text-align: left; }
th { color: var(--ng-muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
td { color: #e7f3e8; font-size: 14px; }
.document-list { display: grid; gap: 10px; margin-top: 17px; }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid rgba(126, 224, 119, .15); border-radius: 12px; background: rgba(5, 16, 8, .28); }
.document-row small { display: block; color: var(--ng-muted); }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; padding: 22px; border: 1px solid rgba(184, 245, 0, .4); border-radius: 20px; background: linear-gradient(120deg, rgba(184, 245, 0, .15), rgba(13, 31, 17, .93) 55%); }
.download-card h2 { margin: 0 0 4px; }
.download-card p { margin: 0; color: var(--ng-muted); }
.approval-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 16px 0;
    padding: 26px;
    border: 1px solid rgba(184, 245, 0, .65);
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(184, 245, 0, .20), rgba(13, 31, 17, .94) 54%);
    box-shadow: 0 18px 45px rgba(111, 190, 0, .10);
}
.approval-download h2 { margin: 5px 0 7px; font-size: clamp(23px, 3vw, 31px); }
.approval-download p { max-width: 600px; margin: 0; color: #d6e8d8; }
.approval-download .button { min-width: 260px; min-height: 56px; padding: 14px 20px; font-size: 16px; }
.approved-message { color: var(--ng-green-soft); font-size: 14px; font-weight: 800; }

.site-footer { padding: 28px 0 46px; border-top: 1px solid rgba(174, 247, 123, .13); color: var(--ng-muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }

@media (max-width: 850px) {
    .site-header { min-height: 72px; }
    .nav-links { display: none; }
    .grid.three, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-hero, .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .shell { width: min(100% - 24px, 1180px); }
    .site-header { align-items: center; gap: 10px; }
    .brand img { width: 116px; }
    .header-actions { justify-content: flex-end; gap: 6px; }
    .header-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
    .section { padding: 54px 0; }
    .section-heading p { font-size: 16px; }
    .grid.three, .grid.two, .choice-grid, .form-grid, .metrics { grid-template-columns: 1fr; }
    .form-shell { margin: 22px auto 45px; padding: 20px 16px; border-radius: 18px; }
    .progress-steps { gap: 5px; }
    .progress-step { padding: 8px 7px; font-size: 11px; }
    .progress-step span { display: none; }
    .portal-hero { margin-top: 18px; }
    .identity-card, .next-card { padding: 19px; }
    .download-card { align-items: stretch; flex-direction: column; }
    .download-card .button { width: 100%; }
    .approval-download { align-items: stretch; flex-direction: column; padding: 20px; }
    .approval-download .button { width: 100%; min-width: 0; }
    .footer-row { align-items: flex-start; flex-direction: column; }
}
