yh1:focus {
    outline: none;
}

html,
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fb;
    color: #162033;
}

a {
    color: inherit;
}

.portal-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    background: #ffffff;
    border-bottom: 1px solid #dde5f0;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.portal-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-nav-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-nav-group-account {
    padding-left: 1rem;
    border-left: 1px solid #dde5f0;
}

.portal-nav a {
    text-decoration: none;
    color: #44506a;
    font-weight: 600;
}

.portal-nav a.active {
    color: #2253d9;
}

.portal-nav-link-loading {
    opacity: 0.72;
    pointer-events: none;
}

.portal-main {
    flex: 1;
    padding: 0.45rem 1rem 0.75rem;
}

.preview-access-card {
    max-width: 520px;
}

.portal-footer {
    padding: 1rem 2rem;
    color: #ffffff;
    font-size: 0.92rem;
    background: #0078d4;
    border-top: 0;
}

.portal-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
    border-top: 0;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.footer-copyright {
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.footer-links {
    justify-content: center;
}

.footer-links-primary {
    justify-content: flex-start;
}

.footer-links a,
.footer-links span {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.82);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.68);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

    #components-reconnect-modal[open] {
        animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active {
        background-color: #6b9ed2;
    }

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.home-preview-links {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d6e2ff;
    border-radius: 18px;
    background: #f4f8ff;
    color: #29467a;
}

.home-preview-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero,
.auth-card,
.account-shell,
.cancellation-shell {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(22, 32, 51, 0.08);
}

.hero {
    display: grid;
    gap: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
}

.landing-container-section {
    margin-bottom: 0.5rem;
}

.landing-container-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.landing-container-header h2 {
    margin: 0;
}

.landing-frame-shell {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(22, 32, 51, 0.06);
    padding: 0.2rem;
    overflow: hidden;
}

.landing-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 158px);
    border: 0;
    border-radius: 10px;
    background: #ffffff;
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2253d9;
}

.hero h1,
.page-intro h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.page-intro h1 {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.page-intro {
    margin-bottom: 1rem;
}

.hero-copy,
.page-intro p,
.card p,
.summary-card p,
.auth-card > p,
.cancellation-shell > p {
    color: #55627d;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-link,
.action-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    border: none;
    background: #2253d9;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-link.secondary,
.action-button.secondary {
    background: #e9eefb;
    color: #2253d9;
}

.card-grid,
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2.25rem;
    align-items: start;
}

.card,
.summary-card {
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 18px;
    padding: 1.5rem;
}

.summary-card-actions-bottom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.summary-card-actions-bottom .summary-detail-list,
.summary-card-actions-bottom .customer-edit-grid,
.summary-card-actions-bottom .billing-guard-banner {
    flex: 1 1 auto;
}

.summary-card-actions-bottom .customer-card-actions {
    margin-top: auto;
}

.card h2,
.summary-card h2,
.summary-card h3,
.auth-card h1,
.cancellation-shell h1 {
    margin-top: 0;
}

.auth-card,
.account-shell,
.cancellation-shell {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem;
}

.sign-up-card {
    max-width: 900px;
    padding: 1.5rem 1.75rem 1.75rem;
    border-color: #e4e9f2;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(31, 45, 92, 0.08);
}

.content-page-shell {
    max-width: 980px;
    padding: 1.5rem 1.75rem 1.75rem;
    border-color: #e4e9f2;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(31, 45, 92, 0.08);
}

.content-page-shell .page-intro {
    max-width: 760px;
    margin: 0 auto 1rem;
}

.content-page-shell .page-intro h1 {
    color: #1f2d5c;
    font-size: clamp(1.75rem, 2.1vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.content-page-shell .page-intro p,
.content-page-shell > p,
.content-page-shell .summary-card p,
.content-page-shell .policy-meta,
.content-page-shell .policy-address,
.content-page-shell .policy-list,
.content-page-shell .status-card p {
    color: #66728f;
}

.content-page-shell .eyebrow {
    margin-bottom: 0.55rem;
    color: #0078d4;
}

.content-page-shell .summary-grid {
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 1.5rem;
}

.content-page-shell .summary-card {
    border-color: #e2e8f2;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    box-shadow: none;
}

.content-page-shell .summary-card h2,
.content-page-shell .summary-card h3 {
    color: #1f2d5c;
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.content-page-shell .auth-form,
.content-page-shell .cancellation-form {
    display: grid;
    gap: 0.8rem;
    max-width: 760px;
    margin: 1rem auto 0;
}

.content-page-shell .field {
    gap: 0.35rem;
}

.content-page-shell .field label,
.content-page-shell .checkbox-field label {
    color: #243153;
    font-size: 0.8rem;
    font-weight: 600;
}

.content-page-shell .field input,
.content-page-shell .field textarea,
.content-page-shell .field select {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d7dfe9;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2d5c;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    font-size: 0.9rem;
}

.content-page-shell .field input:focus,
.content-page-shell .field textarea:focus,
.content-page-shell .field select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.14);
}

.content-page-shell .checkbox-field {
    gap: 0.55rem;
    color: #243153;
}

.content-page-shell .checkbox-field input {
    accent-color: #0078d4;
}

.content-page-shell .form-actions {
    gap: 0.75rem;
}

.content-page-shell .button-link,
.content-page-shell .action-button {
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.content-page-shell .button-link,
.content-page-shell .action-button {
    background: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
}

.content-page-shell .button-link.secondary,
.content-page-shell .action-button.secondary {
    background: #f3f8fe;
    border: 1px solid #cfe2f6;
    box-shadow: none;
    color: #0078d4;
}

.content-page-shell .button-link:hover,
.content-page-shell .action-button:hover {
    background: #006cbe;
}

.content-page-shell .button-link.secondary:hover,
.content-page-shell .action-button.secondary:hover {
    background: #eaf4fd;
}

.content-page-shell.policy-card {
    max-width: 980px;
}

.content-page-shell .policy-section + .policy-section {
    margin-top: 1.55rem;
    padding-top: 1.55rem;
}

.content-page-shell .policy-section h2,
.content-page-shell .policy-section h3 {
    color: #1f2d5c;
}

.status-page-shell {
    max-width: 760px;
}

.status-card {
    margin-top: 1rem;
}

.sign-up-card .page-intro {
    max-width: 760px;
    margin: 0 auto 1rem;
}

.sign-up-card .page-intro h1 {
    color: #1f2d5c;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.sign-up-card .page-intro p {
    color: #66728f;
    font-size: 0.9rem;
    max-width: 680px;
}

.sign-up-card .auth-form {
    display: grid;
    gap: 0.8rem;
    max-width: 760px;
    margin: 0 auto;
}

.sign-up-card .auth-form h2 {
    margin: 0.8rem 0 0.15rem;
    color: #1f2d5c;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.sign-up-card .field-row {
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sign-up-card .field {
    gap: 0.35rem;
}

.sign-up-card .field label,
.sign-up-card .checkbox-field label {
    color: #243153;
    font-size: 0.8rem;
    font-weight: 600;
}

.sign-up-card .field input,
.sign-up-card .field textarea,
.sign-up-card .field select {
    min-height: 40px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d7dfe9;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2d5c;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
    font-size: 0.9rem;
}

.sign-up-card .field input:focus,
.sign-up-card .field textarea:focus,
.sign-up-card .field select:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.14);
}

.sign-up-card .checkbox-field {
    gap: 0.55rem;
    color: #243153;
    margin-top: -0.05rem;
}

.sign-up-card .checkbox-field input {
    accent-color: #0078d4;
}

.sign-up-card .action-button {
    padding: 0.7rem 1rem;
    min-height: 40px;
    border-radius: 6px;
    background: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
    font-size: 0.82rem;
}

.sign-up-card .action-button:hover {
    background: #006cbe;
}

.sign-up-card .inline-link {
    color: #0078d4;
}

.sign-up-card .status-message {
    color: #1f2d5c;
}

.account-shell {
    max-width: 1320px;
    padding: 1.75rem 2rem;
}

.subscription-overview-shell {
    max-width: 1180px;
    padding: 1.4rem 1.6rem 1.8rem;
    border-color: #e4e9f2;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(31, 45, 92, 0.08);
}

.subscription-overview-shell .page-intro {
    margin-bottom: 1rem;
}

.subscription-overview-shell .page-intro h1 {
    color: #1f2d5c;
    font-size: clamp(1.9rem, 2.3vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.subscription-overview-shell .page-intro h1:focus,
.subscription-overview-shell .page-intro h1:focus-visible {
    outline: none;
}

.subscription-overview-shell > .status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-height: 240px;
    margin: 1.5rem 0;
    padding: 2rem;
    color: #44506a;
    font-size: 1.05rem;
    font-weight: 500;
    background: #ffffff;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(31, 45, 92, 0.05);
}

.subscription-overview-shell > .status-message::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #d7dceb;
    border-top-color: #2253d9;
    animation: subscription-overview-spin 0.85s linear infinite;
}

.subscription-overview-shell > .status-message.error-message::before {
    display: none;
}

@keyframes subscription-overview-spin {
    to { transform: rotate(360deg); }
}

.subscription-overview-shell .page-intro p,
.subscription-overview-shell .section-heading p,
.subscription-overview-shell .product-card-header p,
.subscription-overview-shell .summary-card p,
.subscription-overview-shell .summary-detail-label,
.subscription-overview-shell .product-meta dt {
    color: #66728f;
}

.subscription-overview-shell .summary-grid {
    gap: 0.8rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 1.5rem;
}

.subscription-overview-shell .summary-card,
.subscription-overview-shell .product-card {
    border-color: #e2e8f2;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    box-shadow: none;
}

.subscription-overview-shell .summary-card h2,
.subscription-overview-shell .section-heading h2,
.subscription-overview-shell .product-card-header h3 {
    color: #1f2d5c;
}

.subscription-overview-shell .summary-card h2 {
    font-size: 1rem;
    margin-bottom: 0.65rem;
}

.subscription-overview-shell .summary-support-id {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a86a3;
    margin-bottom: 0.45rem;
}

.subscription-overview-shell .summary-value {
    font-size: 1.6rem;
    color: #5b6780;
    margin-bottom: 0.75rem;
}

.subscription-overview-shell .summary-detail-list {
    gap: 0.8rem;
    margin-top: 0.65rem;
}

.subscription-overview-shell .summary-detail-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.subscription-overview-shell .summary-detail-value,
.subscription-overview-shell .product-meta dd {
    font-size: 0.88rem;
    color: #243153;
}

.subscription-overview-shell .customer-card-actions,
.subscription-overview-shell .product-actions {
    gap: 0.6rem;
}

.subscription-overview-shell .button-link.secondary,
.subscription-overview-shell .action-button {
    min-height: 40px;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.subscription-overview-shell .button-link.secondary {
    background: #f3f8fe;
    border: 1px solid #cfe2f6;
    color: #0078d4;
}

.subscription-overview-shell .action-button {
    background: #0078d4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
}

.subscription-overview-shell .action-button:hover {
    background: #006cbe;
}

.subscription-overview-shell .button-link.secondary:hover {
    background: #eaf4fd;
}

.subscription-overview-shell .payment-methods-section {
    margin-top: 1.55rem;
    padding-top: 1.25rem;
}

.subscription-overview-shell .payment-methods-section .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
}

.subscription-overview-shell .section-heading {
    margin-bottom: 0.8rem;
}

.subscription-overview-shell .section-heading h2 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.subscription-overview-shell .product-card-header {
    gap: 0.75rem;
}

.subscription-overview-shell .product-card-header h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.subscription-overview-shell .product-meta {
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.subscription-overview-shell .product-meta dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.subscription-overview-shell .payment-method-default-badge {
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    background: #eef3ff;
    color: #0078d4;
}

.summary-value {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #162033;
}

.summary-support-id {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b6780;
    letter-spacing: 0.01em;
}

.billing-status-overdue {
    color: #b42318;
}

.cancellation-danger-note {
    margin-top: 1rem;
    border-color: #ef9a94;
    background: #fff1ef;
    color: #8f1d18;
}

.cancellation-primary-warning {
    border: 2px solid #d92d20;
    background: #fdecea;
    color: #7a160f;
    font-weight: 700;
}

.cancellation-review-card {
    margin-top: 1rem;
    border-color: #ef9a94;
    background: #fff8f7;
}

.cancellation-review-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #7a160f;
    line-height: 1.7;
}

.cancellation-review-list li + li {
    margin-top: 0.35rem;
}

.danger-action-button {
    background: #b42318;
}

.danger-action-button:disabled {
    background: #e2a5a0;
    cursor: not-allowed;
}

.summary-card-overdue {
    border-color: #f1b5b1;
    background: #fff5f4;
}

.summary-card-overdue .summary-detail-label {
    color: #9b2c26;
}

.summary-detail-list {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.customer-edit-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

.summary-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.summary-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5b6780;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-detail-value {
    color: #162033;
    word-break: break-word;
    line-height: 1.5;
    font-size: 0.95rem;
}

.simulation-banner {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #d6e2ff;
    border-radius: 16px;
    background: #f4f8ff;
    color: #29467a;
}

.save-changes-banner {
    border-color: #b7dfc2;
    background: #eef9f1;
    color: #255b35;
}

.product-section {
    margin-top: 1.5rem;
}

.payment-methods-section {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e5ebf4;
}

.payment-methods-section .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 480px));
}

.current-services-section {
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid #d6e1fb;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    box-shadow: 0 18px 40px rgba(47, 90, 224, 0.08);
}

.current-services-section .section-heading {
    margin-bottom: 1.25rem;
}

.current-services-section .section-heading h2 {
    color: #15327a;
}

.current-services-grid {
    gap: 1.25rem;
}

.product-card.current-service-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-color: #c9d8fb;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 10px 24px rgba(47, 90, 224, 0.08);
}

.current-service-card .product-guard-slot:not(:empty) {
    margin-top: auto;
}

.current-service-card .product-actions {
    margin-top: auto;
}

.current-service-card .product-price {
    color: #15327a;
}

.product-grid.current-services-grid,
.service-group-card .product-grid {
    align-items: stretch;
}

.product-card.available-service-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.available-service-card .product-actions {
    justify-content: flex-start;
    margin-top: auto;
}

.available-service-card .action-button {
    min-width: 10rem;
}

.available-service-card .product-guard-slot:not(:empty) {
    margin-top: auto;
}

.available-service-card .product-guard-slot:not(:empty) ~ .product-meta,
.available-service-card .product-guard-slot:not(:empty) ~ .product-actions {
    margin-top: 0;
}

.available-service-card .product-guard-slot:empty + .product-meta {
    margin-top: auto;
}

.service-group-grid {
    display: grid;
    gap: 1.15rem;
}

.service-group-card {
    display: block;
    padding-bottom: 2rem;
}

.service-group-card > * + * {
    margin-top: 1rem;
}

.service-group-card .product-grid {
    margin-bottom: 0;
}

.service-group-heading {
    margin-bottom: 0;
}

.service-group-callout {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.7rem 1rem;
    border-left: 4px solid #2f5ae0;
    border-radius: 12px;
    background: #eef4ff;
    color: #1f3f9a;
    font-weight: 700;
    font-size: 0.92rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.section-heading p {
    margin: 0;
    color: #5b6780;
    font-size: 0.95rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
    align-items: start;
}

.product-card {
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    height: auto;
}

.product-guard-banner {
    padding: 0.85rem 1rem;
    border: 1px solid #f4d38a;
    border-radius: 12px;
    background: #fff8e8;
    color: #8a5a00;
    font-weight: 600;
}

.product-guard-slot {
    min-height: 0;
}

.product-guard-slot:empty {
    display: none;
}

.billing-guard-banner {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #f4d38a;
    border-radius: 12px;
    background: #fff8e8;
    color: #8a5a00;
    font-weight: 600;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.product-card-header h3 {
    margin: 0 0 0.25rem;
}

.product-card-header p {
    margin: 0;
    color: #5b6780;
    line-height: 1.45;
    font-size: 0.95rem;
}

.product-description-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #5b6780;
}

.product-description-list li + li {
    margin-top: 0.25rem;
}

.product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #162033;
    white-space: nowrap;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    margin-top: 0.25rem;
}

.product-meta dt {
    font-size: 0.85rem;
    color: #5b6780;
}

.product-meta dd {
    margin: 0.25rem 0 0;
    font-weight: 600;
    color: #162033;
    font-size: 0.95rem;
}

.product-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    min-height: 0;
}

.product-actions .action-button,
.product-actions .button-link.secondary {
    min-width: 9rem;
}

.customer-card-actions {
    margin-top: 0.75rem;
    justify-content: flex-start;
}

.payment-method-toolbar {
    display: flex;
    justify-content: flex-start;
    margin: 0;
}

.payment-method-section-actions {
    margin-top: 1rem;
}

.payment-method-form-card {
    margin-bottom: 1rem;
}

.payment-method-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.payment-method-header-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.payment-method-default-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #2253d9;
    font-size: 0.8rem;
    font-weight: 700;
}

.payment-method-card-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.sign-in-progress-message {
    color: #1f2d5c;
}

.payment-method-card-actions .button-link.secondary,
.payment-method-card-actions .action-button {
    min-width: 0;
}

.quantity-editor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-editor-value {
    font-weight: 600;
    color: #162033;
}

.quantity-editor-label {
    font-size: 0.85rem;
    color: #5b6780;
    margin-right: 0.35rem;
}

.quantity-editor .button-link.secondary,
.quantity-editor .action-button {
    min-width: 0;
    padding: 0.35rem 0.85rem;
    font-size: 1rem;
    line-height: 1;
}

.product-status {
    font-weight: 600;
    color: #5b6780;
}

.account-cancellation-card {
    margin-top: 1.25rem;
}

.policy-card {
    max-width: 980px;
}

.policy-meta {
    margin-top: -0.25rem;
    font-weight: 600;
    color: #5b6780;
}

.policy-section + .policy-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5ebf4;
}

.policy-section h2,
.policy-section h3 {
    margin-top: 0;
}

.policy-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #55627d;
    line-height: 1.7;
}

.policy-list li + li {
    margin-top: 0.35rem;
}

.policy-toc {
    display: grid;
    gap: 0.35rem;
}

.policy-address {
    font-style: normal;
    color: #55627d;
    line-height: 1.7;
}

.auth-form,
.cancellation-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.field-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label,
.checkbox-field label {
    font-weight: 600;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1px solid #c8d4e5;
    border-radius: 12px;
    background: #fbfcff;
    color: #162033;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.inline-link {
    color: #2253d9;
    font-weight: 600;
    text-decoration: none;
}

.status-message {
    margin: 0;
    color: #2c6a2c;
    font-weight: 600;
}

.error-message {
    color: #9f2d26;
}

.subscription-status-banner {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.4;
    box-shadow: 0 6px 16px rgba(31, 64, 130, 0.08);
}

.subscription-status-banner-success {
    border-color: #6cbf85;
    background: #e6f6ec;
    color: #1f5232;
}

.subscription-status-banner-error {
    border-color: #ec8c85;
    background: #fde7e4;
    color: #7a1d16;
}

.danger-note {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: #fff2f1;
    color: #9f2d26;
}

.payment-method-error-banner {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #f3c4bf;
    border-radius: 16px;
    background: #fff2f1;
    color: #9f2d26;
}

.payment-method-status-banner {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #b7dfc2;
    border-radius: 16px;
    background: #eef9f1;
    color: #255b35;
    font-weight: 600;
}

.payment-method-status-banner-error {
    border-color: #f3c4bf;
    background: #fff2f1;
    color: #9f2d26;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(22, 32, 51, 0.45);
    z-index: 1000;
}

.modal-card {
    width: min(100%, 520px);
    background: #ffffff;
    border: 1px solid #dde5f0;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(22, 32, 51, 0.18);
    padding: 1.5rem;
}

.validate-only-rollback-backdrop {
    align-items: flex-start;
    padding-top: 5.5rem;
}

.unsaved-changes-modal {
    display: grid;
    gap: 0.9rem;
}

.unsaved-changes-modal h2,
.unsaved-changes-modal p {
    margin: 0;
}

.payment-method-error-modal {
    display: grid;
    gap: 1rem;
}

.payment-method-error-modal h2,
.payment-method-error-modal p {
    margin: 0;
}

.subscription-progress-backdrop {
    z-index: 1100;
}

.subscription-progress-modal {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    text-align: center;
    width: min(100%, 460px);
    padding: 2rem 1.75rem;
}

.subscription-progress-modal h2,
.subscription-progress-modal p {
    margin: 0;
}

.payment-method-progress-modal {
    width: min(100%, 480px);
}

.subscription-progress-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 4px solid #d6e2ff;
    border-top-color: #3f6fd8;
    animation: subscription-progress-spin 0.9s linear infinite;
}

.subscription-save-progress {
    display: block;
}

@keyframes subscription-progress-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 720px) {
    .portal-header {
        flex-direction: column;
        align-items: center;
    }

    .portal-header,
    .portal-main,
    .portal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .brand-block {
        align-items: center;
    }

    .portal-nav {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .portal-nav-group {
        width: 100%;
        justify-content: center;
        row-gap: 0.35rem;
        column-gap: 0.9rem;
    }

    .portal-nav-group-account {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #dde5f0;
        padding-top: 0.5rem;
    }

    .portal-footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero,
    .auth-card,
    .account-shell,
    .cancellation-shell {
        padding: 1.5rem;
    }

    .product-card {
        padding: 1.1rem;
        gap: 0.75rem;
    }

    .product-grid,
    .payment-methods-section .product-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-header-meta {
        justify-content: flex-start;
    }

    .section-heading h2 {
        font-size: 1.25rem;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}