        :root {
            --navy: #2f4f8f;
            --blue: #2d4cb4;
            --blue-dark: #223d93;
            --gold: #f4b41a;
            --green: #176b45;
            --red: #9e1b1b;
            --ink: #172536;
            --muted: #5a6978;
            --line: #d6e0e8;
            --soft: #f5f8fa;
            --page: #e9eff4;
            --white: #ffffff;
            --black: #000000;
            --shadow: 0 14px 36px rgba(18, 57, 91, 0.14);
        }

        * {
            box-sizing: border-box;
        }

        html {
            min-height: 100%;
            background: var(--page);
        }

        body {
            min-width: 0;
            min-height: 100vh;
            margin: 0;
            color: var(--ink);
            background:
                linear-gradient(135deg, rgba(18, 57, 91, 0.08), transparent 42%),
                var(--page);
            font-family: "Segoe UI", Arial, sans-serif;
            font-size: 16px;
            line-height: 1.5;
        }

        a {
            color: var(--blue-dark);
        }

        a:focus-visible,
        button:focus-visible,
        input:focus-visible {
            outline: 3px solid var(--gold);
            outline-offset: 3px;
        }

        .portal-shell {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            padding: 10px 0 40px;
        }

        .portal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            padding: 5px 22px;
            color: #2f4f8f;
            background: #ffffff;
            border-bottom: 4px solid #f4b41a;
            border-radius: 14px 14px 0 0;
            box-shadow: var(--shadow);
        }

        .portal-brand {
            display: flex;
            min-width: 0;
            align-items: center;
            gap: 14px;
        }

        .portal-mark {
            display: grid;
            width: 48px;
            height: 48px;
            flex: 0 0 48px;
            place-items: center;
            color: var(--navy);
            background: var(--white);
            border-radius: 50%;
            font-size: 24px;
            font-weight: 800;
        }

        .portal-brand strong,
        .portal-brand span {
            display: block;
        }

        .portal-brand strong {
            font-size: clamp(1.05rem, 2vw, 1.35rem);
            line-height: 1.2;
            color: #2f4f8f;
        }

        .portal-brand span {
            margin-top: 3px;
            color: #dce9f3;
            font-size: 0.88rem;
        }

        .portal-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .portal-link {
            display: inline-flex;
            min-height: 42px;
            align-items: center;
            justify-content: center;
            padding: 9px 14px;
            color: #2f4f8f;
            border: 1px solid #2f4f8f;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
        }

        .portal-link:hover {
            color: #ffffff;
            background: #2f4f8f;
        }
.portal-hero {
    margin: -38px -38px 0;
    padding: 12px 30px 240px;
    text-align: center;
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1d3768 0%,
#2f4f8f 65%,
#243a67 80%,
#152033 92%,
#000000 100%
        );
}
.portal-hero h1 {
    color: #ffffff;
    margin: 0 0 1px;
}
.portal-hero p {
    color: rgba(255,255,255,.92);
}
        .portal-main {
            padding:clamp(20px, 4vw, 38px);
            background: var(--white);
            border-radius: 0 0 14px 14px;
            box-shadow: var(--shadow);
        }

        .portal-intro {
            max-width: 720px;
            margin: 0 auto 24px;
            text-align: center;
        }

        h1,
        h2 {
            color: var(--navy);
        }

        .portal-intro h1,
        .account-heading h1 {
            margin: 0;
            font-size: clamp(1.7rem, 4vw, 2.45rem);
            line-height: 1.15;
        }

        .portal-intro p,
        .account-heading p {
            margin: 10px 0 0;
            color: var(--muted);
        }

        .secure-notice {
            display: flex;
            max-width: 720px;
            align-items: flex-start;
            gap: 10px;
            margin: 0 auto 22px;
            padding: 10px 14px;
            color: #124b35;
            background: #e9f7f0;
            border: 1px solid #b9dfcc;
            border-radius: 9px;
            font-weight: 700;
        }

.login-card {
    max-width: 560px;
    margin: -225px auto 0;
    margin-bottom: 15px;
    position: relative;
    z-index: 5;
            padding: clamp(20px, 5vw, 34px);
            background: var(--white);
            border: 1px solid var(--line);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(18, 57, 91, 0.1);
        }

        fieldset {
            min-width: 0;
            margin: 0;
            padding: 0;
            border: 0;
        }

        legend {
            width: 100%;
            margin-bottom: 20px;
            color: var(--navy);
            font-size: 1.3rem;
            font-weight: 800;
        }
.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 20px auto 0;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 34px;
    margin-bottom: 6px;
}

.trust-item strong {
    display: block;
    color: var(--navy);
    margin-bottom: 3px;
}

.trust-item span {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}
        .field-group {
            margin-bottom: 12px;
        }

        .field-group label {
            display: block;
            margin-bottom: 7px;
            font-weight: 700;
        }

        .field-group input,
        .PaymentAPIinvoice {
            width: 100%;
            min-height: 42px;
            padding: 10px 12px;
            color: var(--ink);
            background: var(--white);
            border: 1px solid #91a2b2;
            border-radius: 8px;
            font: inherit;
        }

        .field-group input:focus,
        .PaymentAPIinvoice:focus {
            border-color: var(--blue);
            box-shadow: 0 0 0 3px rgba(15, 95, 152, 0.16);
        }

        .primary-button {
            display: inline-flex;
            width: 100%;
            min-height: 50px;
            align-items: center;
            justify-content: center;
            padding: 12px 20px;
            color: var(--white);
            background: #2f4f8f;
            border: 0;
            border-radius: 8px;
            cursor: pointer;
            font: inherit;
            font-weight: 800;
        }

        .primary-button:hover {
            background: #2d4cb4;
        }

        .error,
        .maintenance {
            margin: 0 0 18px;
            padding: 12px 14px;
            color: #781313;
            background: #fff0f0;
            border: 1px solid #e6b8b8;
            border-radius: 8px;
            font-weight: 700;
        }

        .field-error {
            display: block;
            margin-top: 7px;
            color: var(--red);
            font-weight: 700;
        }

.legal-copy {
    margin:
        40px
        calc(-1 * clamp(20px, 4vw, 38px))
        calc(-1 * clamp(20px, 4vw, 38px));

    padding: 18px 24px;
    border-radius: 0 0 14px 14px;
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #1d3768 0%,
#2f4f8f 65%,
#243a67 80%,
#152033 92%,
#000000 100%
        );

    font-size: 1.05rem;
    text-align: center;
}

.legal-copy p {
    margin: 10px 0;
}

.legal-copy a {
    color: #ffffff;
    font-weight: 700;
}

.legal-copy a:hover {
    text-decoration: underline;
}
.debt-notice {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: none;
}
        .account-heading {
            margin-bottom: 22px;
        }

        .account-name {
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            margin-bottom: 28px;
        }

        .summary-card {
            min-width: 0;
            padding: 20px;
            background: var(--soft);
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .summary-card h2 {
            margin: 0 0 14px;
            font-size: 1.15rem;
        }

        .summary-list {
            margin: 0;
        }

        .summary-row {
            display: grid;
            grid-template-columns: minmax(130px, 0.75fr) minmax(0, 1.25fr);
            gap: 14px;
            padding: 9px 0;
            border-top: 1px solid var(--line);
        }

        .summary-row:first-child {
            padding-top: 0;
            border-top: 0;
        }

        .summary-row dt {
            color: var(--muted);
            font-weight: 700;
        }

        .summary-row dd {
            min-width: 0;
            margin: 0;
            overflow-wrap: anywhere;
            text-align: right;
            font-weight: 800;
        }

        .section-title {
            margin: 28px 0 14px;
            font-size: 1.35rem;
        }

        .table-shell {
            width: 100%;
            overflow-x: auto;
            border: 1px solid var(--line);
            border-radius: 10px;
        }

        .details {
            width: 100%;
            min-width: 720px;
            margin: 0;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .details th,
        .details td {
            padding: 13px 14px;
            border-bottom: 1px solid var(--line);
            vertical-align: middle;
        }

        .details th {
            color: var(--white);
            background: var(--navy);
            text-align: left;
        }

        .details tbody tr:nth-child(even) {
            background: var(--soft);
        }

        .details tbody tr.error {
            background: #fff0f0;
        }

        .details tfoot td {
            color: var(--navy);
            background: #dceef8;
            border-bottom: 0;
            font-weight: 800;
        }

        .details .amount {
            text-align: right;
        }

        .payment-entry {
            display: grid;
            grid-template-columns: auto minmax(110px, 1fr) auto;
            align-items: center;
            gap: 7px;
        }

        .PaymentAPIinvoice {
            min-height: 42px;
            text-align: right;
        }

        .fee-disclosure {
            margin: 24px 0;
            padding: 18px 20px;
            background: #fff9e1;
            border: 1px solid #ead58a;
            border-left: 5px solid var(--gold);
            border-radius: 8px;
        }

        .fee-disclosure h2 {
            margin: 0 0 10px;
            font-size: 1.05rem;
            text-transform: uppercase;
        }

        .fee-disclosure p {
            margin: 0 0 10px;
        }

        .fee-disclosure ul {
            margin: 0;
            padding-left: 22px;
            list-style: disc outside;
        }

        .fee-disclosure li {
            display: list-item;
            margin: 7px 0;
        }

        .payment-options {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .payment-option {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 10px;
            padding: 14px;
            background: var(--soft);
            border: 1px solid var(--line);
            border-radius: 8px;
        }

        .payment-option input {
            width: 20px;
            height: 20px;
            flex: 0 0 auto;
            margin-top: 2px;
        }

        .payment-submit {
            margin-top: 18px;
        }

        .portal-footer-note {
            margin: 22px 0 0;
            color: var(--muted);
            font-size: 0.88rem;
            text-align: center;
        }

        @media (max-width: 760px) {
            .portal-shell {
                width: calc(100% - 20px);
                padding: 10px 0 24px;
            }

            .portal-header {
                align-items: flex-start;
                padding: 16px;
                border-radius: 10px 10px 0 0;
                flex-direction: column;
            }

            .portal-actions,
            .portal-link {
                width: 100%;
            }
.portal-hero {
margin: -20px -14px 0;
padding: 40px 20px 110px;
}
        .trust-row {
grid-template-columns: 1fr;
gap: 18px;
}
            .portal-main {
                padding: 20px 14px 26px;
                border-radius: 0 0 10px 10px;
            }

            .summary-grid {
                grid-template-columns: 1fr;
            }

            .summary-row {
                grid-template-columns: 1fr;
                gap: 3px;
            }

            .summary-row dd {
                text-align: left;
            }

            .table-shell {
                overflow: visible;
                border: 0;
            }

            .details {
                min-width: 0;
                border-collapse: separate;
            }

            .details thead {
                position: absolute;
                width: 1px;
                height: 1px;
                overflow: hidden;
                clip: rect(0 0 0 0);
                white-space: nowrap;
                clip-path: inset(50%);
            }

            .details,
            .details tbody,
            .details tfoot,
            .details tr,
            .details td {
                display: block;
                width: 100%;
            }

            .details tbody tr {
                margin-bottom: 14px;
                padding: 8px 14px;
                background: var(--white);
                border: 1px solid var(--line);
                border-radius: 9px;
                box-shadow: 0 4px 12px rgba(18, 57, 91, 0.07);
            }

            .details tbody tr:nth-child(even) {
                background: var(--white);
            }

            .details tbody td {
                display: grid;
                grid-template-columns: minmax(110px, 0.85fr) minmax(0, 1.15fr);
                align-items: center;
                gap: 12px;
                padding: 10px 0;
                border-bottom: 1px solid var(--line);
                text-align: right;
            }

            .details tbody td:last-child {
                border-bottom: 0;
            }

            .details tbody td::before {
                content: attr(data-label);
                color: var(--muted);
                font-weight: 700;
                text-align: left;
            }

            .payment-entry {
                grid-template-columns: auto minmax(80px, 1fr) auto;
            }

            .details tfoot {
                margin-top: 16px;
                padding: 12px 14px;
                background: #dceef8;
                border: 1px solid #b8d5e6;
                border-radius: 9px;
            }

            .details tfoot tr,
            .details tfoot td {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                padding: 6px 0;
                background: transparent;
                border: 0;
            }

            .details tfoot td:first-child {
                display: block;
                font-size: 1.05rem;
            }

            .details tfoot td::before {
                content: attr(data-label);
                color: var(--muted);
                text-align: left;
            }
        }

        @media (max-width: 420px) {
            .portal-brand span {
                font-size: 0.78rem;
            }

            .details tbody td {
                grid-template-columns: 1fr;
                gap: 5px;
                text-align: left;
            }
        }