:root {
    --be-bg: #f5f7fa;
    --be-card: #ffffff;
    --be-line: #dde5ee;
    --be-line-soft: #eef2f6;
    --be-text: #111827;
    --be-muted: #667085;
    --be-primary: #007a68;
    --be-primary-dark: #00594d;
    --be-primary-soft: #e7f6f2;
    --be-shadow: 0 18px 44px rgba(16, 24, 40, .08);
}

html,
body.customer-page {
    min-height: 100%;
}

body.customer-page {
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0, #f5f7fa 165px, #f5f7fa 100%);
    color: var(--be-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* Top */
.be-topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--be-line);
}

.be-topbar::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--be-primary-dark), var(--be-primary), #17b39d);
}

.be-topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.be-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--be-text);
}

.be-logo-wrap {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--be-line);
    border-radius: 12px;
}

.be-logo-wrap img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.be-brand strong {
    display: block;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.be-brand small {
    display: block;
    margin-top: 3px;
    color: var(--be-muted);
    font-size: 12px;
}

.be-top-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #bfe6dd;
    background: var(--be-primary-soft);
    color: var(--be-primary-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.be-status-dot {
    width: 8px;
    height: 8px;
    background: #16a34a;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .13);
}

/* Page */
.be-main {
    padding: 26px 0 30px;
}

.be-page-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.be-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--be-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
}

.be-page-title h1 {
    margin: 0;
    color: var(--be-text);
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.025em;
}

.be-mini-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.be-mini-badges span {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--be-line);
    color: #344054;
    font-size: 12px;
    font-weight: 700;
}

/* Main panels */
.be-panel,
.be-security {
    background: var(--be-card);
    border: 1px solid var(--be-line);
    border-radius: 18px;
    box-shadow: var(--be-shadow);
}

.be-panel-body {
    padding: 26px;
}

.be-panel-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.be-panel-body p {
    margin: 0 0 18px;
    color: var(--be-muted);
    line-height: 1.55;
}

/* Forms */
.be-panel-body label,
.be-form-label,
.form-label {
    margin-bottom: 6px;
    color: #182230;
    font-size: 13px;
    font-weight: 750;
}

.be-panel-body input,
.be-panel-body select,
.form-control,
.form-select {
    min-height: 44px;
    border-radius: 10px;
    border-color: #cfd8e3;
    color: var(--be-text);
    font-size: 14px;
}

.be-panel-body input:focus,
.be-panel-body select:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--be-primary);
    box-shadow: 0 0 0 .18rem rgba(0, 122, 104, .13);
}

.btn-be,
.btn-corp,
.be-panel-body button[type="submit"] {
    min-height: 44px;
    border-radius: 10px;
    border: 0;
    background: var(--be-primary);
    color: #ffffff;
    font-weight: 750;
    padding-left: 16px;
    padding-right: 16px;
}

.btn-be:hover,
.btn-corp:hover,
.be-panel-body button[type="submit"]:hover {
    background: var(--be-primary-dark);
    color: #ffffff;
}

.btn-be-light,
.btn-corp-secondary {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--be-line);
    background: #ffffff;
    color: #344054;
    font-weight: 750;
    padding-left: 16px;
    padding-right: 16px;
    text-decoration: none;
}

.btn-be-light:hover,
.btn-corp-secondary:hover {
    background: #f8fafc;
    color: #111827;
}

/* Summary */
.be-summary,
.corp-summary {
    border: 1px solid var(--be-line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 20px;
}

.be-summary-row,
.corp-summary-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    border-bottom: 1px solid var(--be-line-soft);
}

.be-summary-row:last-child,
.corp-summary-row:last-child {
    border-bottom: 0;
}

.be-summary-row span,
.be-summary-row strong,
.corp-summary-row span,
.corp-summary-row strong {
    padding: 11px 13px;
    font-size: 13px;
}

.be-summary-row span,
.corp-summary-row span {
    background: #f8fafc;
    color: #475467;
    font-weight: 750;
}

.be-summary-row strong,
.corp-summary-row strong {
    color: #101828;
    font-weight: 750;
}

/* Security side */
.be-security {
    padding: 22px;
}

.be-security-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--be-line-soft);
}

.be-security-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--be-primary-soft);
    color: var(--be-primary-dark);
    border-radius: 12px;
    font-weight: 900;
}

.be-security h2 {
    margin: 0;
    color: var(--be-text);
    font-size: 17px;
    font-weight: 750;
}

.be-security p {
    margin: 4px 0 0;
    color: var(--be-muted);
    font-size: 12px;
    line-height: 1.4;
}

.be-security-list > div {
    padding: 13px 0;
    border-bottom: 1px solid var(--be-line-soft);
}

.be-security-list strong {
    display: block;
    color: var(--be-primary-dark);
    font-size: 13px;
    font-weight: 750;
}

.be-security-list span {
    display: block;
    margin-top: 3px;
    color: var(--be-muted);
    font-size: 12px;
    line-height: 1.45;
}

.be-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 15px;
}

.be-payment-logos span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--be-line);
    color: #344054;
    font-size: 11px;
    font-weight: 750;
}

/* Alerts and tables */
.alert {
    border-radius: 12px;
}

.alert-danger,
.alert.err {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success,
.alert.ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.table {
    font-size: 13px;
}

.table th {
    background: #f8fafc;
    color: #475467;
    font-weight: 750;
}

hr {
    border-color: var(--be-line-soft);
    opacity: 1;
}

/* Footer */
.be-footer {
    padding: 0 0 18px;
    color: var(--be-muted);
    font-size: 12px;
}

.be-footer .container-xl {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* Old leftovers reset */
.wrap,
.card,
.gov-page,
.gov-main,
.gov-card,
.gov-side,
.flat-page,
.flat-main,
.flat-content,
.flat-side,
.customer-page-shell,
.customer-layout,
.customer-hero,
.customer-main,
.customer-card,
.customer-trust {
    all: unset;
}

/* Responsive */
@media (max-width: 991px) {
    .be-page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .be-mini-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .be-topbar-inner {
        min-height: auto;
        padding: 13px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .be-brand strong {
        font-size: 16px;
    }

    .be-logo-wrap {
        width: 50px;
        height: 50px;
    }

    .be-page-title h1 {
        font-size: 22px;
    }

    .be-panel-body {
        padding: 19px;
    }

    .be-summary-row,
    .corp-summary-row {
        grid-template-columns: 1fr;
    }

    .be-summary-row span,
    .corp-summary-row span {
        padding-bottom: 4px;
    }

    .be-summary-row strong,
    .corp-summary-row strong {
        padding-top: 5px;
    }

    .be-footer .container-xl {
        flex-direction: column;
    }
}
