:root {
    --hp-primary: #4f46e5;
    --hp-primary-strong: #4338ca;
    --hp-cyan: #0ea5e9;
    --hp-ink: #0f172a;
    --hp-muted: #64748b;
    --hp-surface: #ffffff;
    --hp-border: #e2e8f0;
    --hp-radius: 18px;
    --hp-shadow: 0 24px 70px rgba(15, 23, 42, .14);
}

/* Phase 4C: reseller branding and operational reports */
.hp-brand-switch {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--hp-primary) 25%, var(--hp-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--hp-primary) 6%, var(--hp-card-bg));
}

.hp-brand-switch .form-check-input {
    flex: 0 0 auto;
    margin: 3px 0 0;
}

.hp-brand-switch label strong,
.hp-brand-switch label small {
    display: block;
}

.hp-brand-switch label small {
    margin-top: 3px;
    color: var(--hp-muted);
}

.hp-color-field {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
}

.hp-color-field .form-control-color {
    width: 58px;
}

.hp-brand-preview-card {
    --preview-primary: var(--hp-primary);
    --preview-accent: var(--hp-cyan);
    overflow: hidden;
    min-height: 390px;
    color: #fff;
    border: 0;
    background:
        radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--preview-accent) 72%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--preview-primary) 82%, #101827), #101827 76%);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--preview-primary) 25%, transparent);
}

.hp-brand-preview-top,
.hp-brand-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-brand-preview-body {
    display: flex;
    min-height: 270px;
    padding: 28px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hp-brand-preview-logo {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    place-items: center;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, .95);
}

.hp-brand-preview-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hp-brand-preview-logo span {
    color: var(--preview-primary);
    font-size: 1.8rem;
}

.hp-brand-preview-body > strong {
    font-size: 1.5rem;
}

.hp-brand-preview-body > small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .7);
}

.hp-brand-preview-action {
    margin-top: 28px;
    padding: 11px 18px;
    border-radius: 12px;
    color: #0f172a;
    background: #fff;
    font-weight: 700;
}

.hp-brand-dealer-list > a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 18px;
    align-items: center;
    color: var(--hp-ink);
    border-bottom: 1px solid var(--hp-border);
}

.hp-brand-dealer-list > a:last-child {
    border-bottom: 0;
}

.hp-brand-dealer-list > a:hover,
.hp-brand-dealer-list > a.is-active {
    background: color-mix(in srgb, var(--hp-primary) 8%, var(--hp-card-bg));
}

.hp-brand-dealer-list > a.is-active {
    box-shadow: inset 3px 0 0 var(--hp-primary);
}

.hp-brand-dealer-list a span:nth-child(2) strong,
.hp-brand-dealer-list a span:nth-child(2) small {
    display: block;
}

.hp-brand-dealer-list a span:nth-child(2) small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-report-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--hp-muted);
    font-size: .82rem;
}

.hp-report-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hp-report-legend i {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.hp-report-legend .is-customer,
.hp-report-bars .is-customer {
    background: var(--hp-primary);
}

.hp-report-legend .is-order,
.hp-report-bars .is-order {
    background: var(--hp-cyan);
}

.hp-report-chart {
    display: grid;
    height: 250px;
    grid-template-columns: repeat(6, minmax(54px, 1fr));
    gap: 12px;
    align-items: end;
}

.hp-report-column {
    display: grid;
    height: 100%;
    grid-template-rows: 1fr auto;
    gap: 9px;
}

.hp-report-column small {
    color: var(--hp-muted);
    text-align: center;
}

.hp-report-bars {
    display: flex;
    min-height: 190px;
    gap: 5px;
    align-items: end;
    justify-content: center;
    border-bottom: 1px solid var(--hp-border);
    background: repeating-linear-gradient(to top, transparent 0, transparent 46px, color-mix(in srgb, var(--hp-border) 55%, transparent) 47px);
}

.hp-report-bars span {
    width: min(22px, 36%);
    min-height: 4px;
    border-radius: 7px 7px 2px 2px;
}

.hp-report-finance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hp-report-finance > div {
    padding: 18px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-report-finance span,
.hp-report-finance strong {
    display: block;
}

.hp-report-finance span {
    margin-bottom: 7px;
    color: var(--hp-muted);
    font-size: .8rem;
}

.hp-report-finance strong {
    color: var(--hp-ink);
    font-size: 1.08rem;
}

.hp-report-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hp-report-status-grid > div {
    display: flex;
    min-height: 112px;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-report-status-grid strong {
    color: var(--hp-ink);
    font-size: 1.8rem;
}

@media (max-width: 575.98px) {
    .hp-report-chart {
        overflow-x: auto;
        grid-template-columns: repeat(6, 64px);
    }

    .hp-report-finance,
    .hp-report-status-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 5A: product and package catalog */
.hp-category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.hp-category-strip > div {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding: 14px;
    align-items: center;
    border: 1px solid var(--hp-border);
    border-radius: 15px;
    background: var(--hp-card-bg);
}

.hp-category-icon,
.hp-catalog-type-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--hp-primary) 10%, var(--hp-card-bg));
    font-size: 1.2rem;
}

.hp-category-strip strong,
.hp-category-strip small {
    display: block;
}

.hp-category-strip small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .77rem;
}

.hp-catalog-product-cell {
    display: flex;
    min-width: 250px;
    align-items: center;
    gap: 12px;
}

.hp-catalog-product-cell strong,
.hp-catalog-product-cell small {
    display: block;
}

.hp-catalog-product-cell small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-price-editor th,
.hp-price-editor td {
    min-width: 125px;
}

.hp-price-editor th:first-child,
.hp-price-editor td:first-child {
    min-width: 170px;
}

.hp-price-editor th:last-child,
.hp-price-editor td:last-child {
    min-width: 58px;
}

.hp-catalog-sticky {
    position: sticky;
    top: calc(var(--hp-topbar-height) + 22px);
}

.hp-catalog-preview {
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 5%, color-mix(in srgb, var(--hp-cyan) 18%, transparent), transparent 42%),
        var(--hp-card-bg);
}

.hp-catalog-preview h2 {
    margin: 9px 0 7px;
    color: var(--hp-ink);
    font-size: 1.3rem;
}

.hp-catalog-preview p {
    margin: 0;
    color: var(--hp-muted);
}

.hp-catalog-hero {
    display: flex;
    min-height: 220px;
    padding: clamp(28px, 4vw, 50px);
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    color: #fff;
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 24%, rgba(56, 189, 248, .38), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--hp-primary) 82%, #111827), color-mix(in srgb, var(--hp-cyan) 62%, #111827));
    box-shadow: 0 25px 65px color-mix(in srgb, var(--hp-primary) 18%, transparent);
}

.hp-catalog-hero h1 {
    max-width: 720px;
    margin: 7px 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hp-catalog-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .75);
}

.hp-catalog-hero-count {
    display: grid;
    min-width: 150px;
    min-height: 150px;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.hp-catalog-hero-count strong,
.hp-catalog-hero-count small {
    display: block;
}

.hp-catalog-hero-count strong {
    font-size: 2.5rem;
}

.hp-catalog-hero-count small {
    color: rgba(255, 255, 255, .72);
}

.hp-storefront-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.hp-storefront-card {
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hp-storefront-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--hp-primary) 35%, var(--hp-border));
    box-shadow: 0 22px 55px color-mix(in srgb, var(--hp-primary) 13%, transparent);
}

.hp-storefront-card.is-featured {
    border-color: color-mix(in srgb, var(--hp-primary) 50%, var(--hp-border));
}

.hp-storefront-badge {
    position: absolute;
    top: 16px;
    right: -34px;
    width: 130px;
    padding: 7px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(38deg);
}

.hp-storefront-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hp-muted);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hp-storefront-card h2 {
    margin: 20px 0 8px;
    color: var(--hp-ink);
    font-size: 1.45rem;
}

.hp-storefront-card .card-body > p {
    min-height: 48px;
    color: var(--hp-muted);
}

.hp-storefront-price {
    display: flex;
    margin: 24px 0 12px;
    align-items: baseline;
    gap: 7px;
}

.hp-storefront-price strong {
    color: var(--hp-ink);
    font-size: 1.65rem;
}

.hp-storefront-price span,
.hp-storefront-card .card-footer small {
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-storefront-price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hp-storefront-price-options span {
    padding: 5px 8px;
    color: var(--hp-primary);
    border-radius: 8px;
    background: color-mix(in srgb, var(--hp-primary) 8%, var(--hp-card-bg));
    font-size: .72rem;
    font-weight: 700;
}

.hp-storefront-resources {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 20px 0;
}

.hp-storefront-resources span {
    display: flex;
    padding: 11px;
    align-items: center;
    gap: 7px;
    color: var(--hp-ink);
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    background: var(--hp-soft-bg);
    font-size: .78rem;
}

.hp-storefront-features {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.hp-storefront-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--hp-muted);
    font-size: .85rem;
}

.hp-storefront-features li i,
.hp-storefront-features li.is-highlighted {
    color: var(--hp-primary);
}

.hp-storefront-features li span {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.hp-storefront-features li strong {
    color: var(--hp-ink);
}

.hp-storefront-card .card-footer {
    display: grid;
    gap: 8px;
    padding: 18px 22px;
    text-align: center;
    border-top: 1px solid var(--hp-border);
    background: var(--hp-soft-bg);
}

@media (max-width: 767.98px) {
    .hp-catalog-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-catalog-hero-count {
        min-width: 112px;
        min-height: 112px;
    }

    .hp-category-strip > div {
        grid-template-columns: auto 1fr;
    }

    .hp-category-strip > div .btn,
    .hp-category-strip > div form {
        grid-column: span 1;
    }

    .hp-catalog-sticky {
        position: static;
    }
}

.hp-table-primary-link {
    display: inline-grid;
    gap: 3px;
    color: var(--hp-ink);
}

.hp-table-primary-link:hover {
    color: var(--hp-primary);
}

.hp-table-primary-link small {
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-domain-center-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--hp-cyan) 14%, transparent), transparent 40%),
        var(--hp-card-bg);
}

.hp-domain-center-hero h2 {
    margin: 0 0 6px;
    color: var(--hp-ink);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 780;
    letter-spacing: -.04em;
}

.hp-domain-center-hero p {
    margin: 0;
    color: var(--hp-muted);
}

.hp-domain-center-tabs {
    width: 100%;
    overflow-x: auto;
}

.hp-domain-quick-actions {
    display: grid;
    gap: 9px;
}

.hp-domain-quick-actions a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    color: var(--hp-ink);
    border: 1px solid var(--hp-border);
    border-radius: 13px;
    background: var(--hp-soft-bg);
}

.hp-domain-quick-actions a:hover {
    color: var(--hp-primary);
    border-color: color-mix(in srgb, var(--hp-primary) 30%, var(--hp-border));
}

.hp-domain-quick-actions a > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.15rem;
}

.hp-domain-quick-actions strong,
.hp-domain-quick-actions small {
    display: block;
}

.hp-domain-quick-actions small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .74rem;
}

.hp-domain-value-list {
    display: grid;
    gap: 10px;
}

.hp-domain-value-list > div {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    background: var(--hp-soft-bg);
}

.hp-domain-value-list > div > span {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 9px;
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: .72rem;
    font-weight: 800;
}

.hp-domain-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hp-domain-contact-grid article {
    display: grid;
    gap: 5px;
    padding: 15px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-domain-contact-grid article > span {
    color: var(--hp-primary);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hp-domain-contact-grid small {
    color: var(--hp-muted);
    overflow-wrap: anywhere;
}

.hp-domain-security-grid {
    display: grid;
    gap: 12px;
}

.hp-domain-security-grid article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-domain-security-grid article > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 13px;
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.2rem;
}

.hp-domain-security-grid strong,
.hp-domain-security-grid small {
    display: block;
}

.hp-domain-security-grid small {
    margin-top: 3px;
    color: var(--hp-muted);
}

.hp-domain-forward {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.hp-domain-forward > span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 16px;
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.35rem;
}

.hp-domain-forward strong {
    color: var(--hp-ink);
    overflow-wrap: anywhere;
}

.hp-domain-forward small {
    color: var(--hp-muted);
}

.hp-hosting-domain-tabs {
    width: 100%;
    overflow-x: auto;
}

.hp-stat-value-small {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

.hp-hosting-quick-actions {
    display: grid;
    gap: 10px;
}

.hp-hosting-quick-actions .btn {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.hp-hosting-token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-hosting-token-list form {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 7px 8px 7px 11px;
    border: 1px solid var(--hp-border);
    border-radius: 999px;
    background: var(--hp-soft-bg);
}

.hp-hosting-token-list button {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    color: var(--hp-muted);
    border: 0;
    border-radius: 50%;
    background: transparent;
    place-items: center;
}

.hp-hosting-token-list button:hover {
    color: var(--bs-danger);
    background: color-mix(in srgb, var(--bs-danger) 10%, transparent);
}

.hp-hosting-access-row {
    display: grid;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid var(--hp-border);
}

.hp-hosting-access-row > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hp-hosting-access-row > div > form:first-child {
    flex: 1 1 310px;
}

.hp-hosting-log {
    min-height: 240px;
    max-height: 560px;
    margin: 0;
    padding: 16px;
    overflow: auto;
    color: var(--hp-ink);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
    font-size: .76rem;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .hp-domain-center-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-domain-contact-grid {
        grid-template-columns: 1fr;
    }

    .hp-domain-security-grid article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .hp-domain-security-grid article form {
        grid-column: 1 / -1;
    }

    .hp-domain-security-grid article .btn {
        width: 100%;
    }

    .hp-hosting-access-row > div,
    .hp-hosting-access-row > div > form:first-child {
        width: 100%;
    }
}

[data-bs-theme="dark"] {
    --hp-ink: #f8fafc;
    --hp-muted: #94a3b8;
    --hp-surface: #111827;
    --hp-border: #263244;
    --hp-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

body {
    letter-spacing: -.01em;
}

.hp-theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--hp-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--hp-surface) 88%, transparent);
    color: var(--hp-ink);
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.hp-theme-toggle:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--hp-primary) 45%, var(--hp-border));
}

.hp-auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--hp-ink);
    background: #eef2ff;
}

[data-bs-theme="dark"] .hp-auth-page {
    background: #070b14;
}

.hp-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr);
}

.hp-auth-story {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(34px, 5vw, 76px);
    color: #f8fafc;
    background:
        radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .3), transparent 33%),
        radial-gradient(circle at 88% 76%, rgba(99, 102, 241, .36), transparent 34%),
        linear-gradient(145deg, #07101f 0%, #101c36 54%, #172554 100%);
}

.hp-auth-story::before,
.hp-auth-story::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.hp-auth-story::before {
    width: 520px;
    height: 520px;
    right: -210px;
    top: -170px;
}

.hp-auth-story::after {
    width: 340px;
    height: 340px;
    left: -170px;
    bottom: -120px;
}

.hp-brand,
.hp-auth-copy,
.hp-auth-proof {
    position: relative;
    z-index: 1;
}

.hp-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.hp-brand img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .28));
}

.hp-brand strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: -.02em;
}

.hp-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(226, 232, 240, .68);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-auth-copy {
    max-width: 680px;
    margin: auto 0;
    padding: 52px 0;
}

.hp-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, .1);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-auth-copy h1 {
    max-width: 650px;
    margin: 24px 0 18px;
    color: #fff;
    font-size: clamp(2.55rem, 5.5vw, 5.6rem);
    font-weight: 750;
    letter-spacing: -.065em;
    line-height: .98;
}

.hp-auth-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(226, 232, 240, .78);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.75;
}

.hp-auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: rgba(226, 232, 240, .76);
    font-size: .86rem;
}

.hp-auth-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hp-auth-proof i {
    color: #38bdf8;
}

.hp-auth-form-panel {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 38px clamp(24px, 5vw, 74px);
    background: color-mix(in srgb, var(--hp-surface) 95%, #eef2ff);
}

.hp-auth-theme {
    position: absolute;
    top: 28px;
    right: 30px;
}

.hp-auth-form-wrap {
    width: min(100%, 460px);
}

.hp-auth-form-wrap h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 750;
    letter-spacing: -.05em;
}

.hp-auth-form-wrap > p {
    margin-bottom: 34px;
    color: var(--hp-muted);
    font-size: 1rem;
}

.hp-auth-form-wrap .form-label {
    margin-bottom: 9px;
    color: var(--hp-ink);
    font-size: .86rem;
    font-weight: 650;
}

.hp-auth-form-wrap .form-control {
    min-height: 54px;
    border-color: var(--hp-border);
    border-radius: 14px;
    padding: 12px 16px;
    background: var(--hp-surface);
    color: var(--hp-ink);
    box-shadow: none;
}

.hp-auth-form-wrap .form-control:focus {
    border-color: color-mix(in srgb, var(--hp-primary) 65%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-primary) 13%, transparent);
}

.hp-password-wrap {
    position: relative;
}

.hp-password-wrap .form-control {
    padding-right: 52px;
}

.hp-password-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    color: var(--hp-muted);
    background: transparent;
}

.hp-login-button {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    box-shadow: 0 14px 30px rgba(79, 70, 229, .25);
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hp-login-button:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(79, 70, 229, .32);
}

.hp-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    color: var(--hp-muted);
    font-size: .82rem;
}

.hp-login-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hp-login-alert {
    border: 0;
    border-radius: 14px;
}

@media (max-width: 899.98px) {
    .hp-auth-shell {
        grid-template-columns: 1fr;
    }

    .hp-auth-story {
        min-height: auto;
        padding: 30px 24px 48px;
    }

    .hp-auth-copy {
        padding: 58px 0 42px;
    }

    .hp-auth-copy h1 {
        max-width: 720px;
        font-size: clamp(2.5rem, 10vw, 4.6rem);
    }

    .hp-auth-form-panel {
        min-height: auto;
        padding: 72px 24px;
    }

    .hp-auth-theme {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 575.98px) {
    .hp-auth-proof {
        display: grid;
    }

    .hp-login-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Application shell */
:root {
    --hp-sidebar-width: 272px;
    --hp-topbar-height: 76px;
    --hp-app-bg: #f4f7fb;
    --hp-card-bg: #ffffff;
    --hp-soft-bg: #f8fafc;
    --hp-sidebar-bg: #0b1220;
    --hp-sidebar-text: #94a3b8;
    --hp-sidebar-active: #ffffff;
}

[data-bs-theme="dark"] {
    --hp-app-bg: #080d17;
    --hp-card-bg: #101827;
    --hp-soft-bg: #0c1422;
    --hp-sidebar-bg: #070b13;
    --hp-sidebar-text: #8795aa;
    --hp-sidebar-active: #ffffff;
}

body:not(.hp-auth-page) {
    min-height: 100vh;
    color: var(--hp-ink);
    background: var(--hp-app-bg);
}

body:not(.hp-auth-page) .main-content {
    min-height: 100vh;
    margin-left: var(--hp-sidebar-width) !important;
    background: var(--hp-app-bg);
    transition: margin-left .25s ease;
}

body:not(.hp-auth-page) .page-content {
    min-height: calc(100vh - 68px);
    padding: calc(var(--hp-topbar-height) + 28px) 28px 32px !important;
}

.hp-sidebar {
    position: fixed;
    z-index: 1045;
    inset: 0 auto 0 0;
    width: var(--hp-sidebar-width);
    display: flex;
    flex-direction: column;
    color: var(--hp-sidebar-text);
    background:
        radial-gradient(circle at 12% 2%, rgba(14, 165, 233, .13), transparent 26%),
        var(--hp-sidebar-bg);
    border-right: 1px solid rgba(148, 163, 184, .09);
    box-shadow: 18px 0 50px rgba(15, 23, 42, .06);
}

.hp-sidebar-brand {
    height: var(--hp-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.hp-sidebar-logo {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.hp-sidebar-logo:hover {
    color: #fff;
}

.hp-sidebar-logo img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.hp-sidebar-logo span {
    min-width: 0;
}

.hp-sidebar-logo strong,
.hp-sidebar-logo small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-sidebar-logo strong {
    max-width: 170px;
    font-size: .98rem;
    letter-spacing: -.02em;
}

.hp-sidebar-logo small {
    margin-top: 2px;
    color: #64748b;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hp-sidebar-close {
    display: none;
    border: 0;
    color: #94a3b8;
    background: transparent;
    font-size: 1.45rem;
}

.hp-sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 15px;
}

.hp-nav-group + .hp-nav-group {
    margin-top: 26px;
}

.hp-nav-label {
    margin: 0 12px 9px;
    color: #526177;
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.hp-nav-link {
    position: relative;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 12px;
    color: var(--hp-sidebar-text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.hp-nav-link:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, .07);
    transform: translateX(2px);
}

.hp-nav-link i {
    width: 22px;
    flex: 0 0 22px;
    font-size: 1.22rem;
    text-align: center;
}

.hp-nav-link.is-active {
    color: var(--hp-sidebar-active);
    background: linear-gradient(135deg, rgba(79, 70, 229, .92), rgba(14, 165, 233, .72));
    box-shadow: 0 12px 28px rgba(79, 70, 229, .2);
}

.hp-nav-nested summary {
    cursor: pointer;
    list-style: none;
}

.hp-nav-nested summary::-webkit-details-marker {
    display: none;
}

.hp-nav-nested .hp-nav-caret {
    width: auto;
    margin-left: auto;
    font-size: 1rem;
    transition: transform .2s ease;
}

.hp-nav-nested[open] .hp-nav-caret {
    transform: rotate(180deg);
}

.hp-nav-children {
    display: grid;
    gap: 3px;
    margin: 5px 0 8px 23px;
    padding-left: 14px;
    border-left: 1px solid rgba(148, 163, 184, .18);
}

.hp-nav-sublink {
    display: flex;
    min-height: 38px;
    padding: 8px 10px;
    align-items: center;
    gap: 9px;
    color: var(--hp-sidebar-text);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.hp-nav-sublink:hover,
.hp-nav-sublink.is-active {
    color: #fff;
    background: rgba(148, 163, 184, .1);
}

.hp-nav-sublink.is-active {
    box-shadow: inset 2px 0 0 var(--hp-cyan);
}

.hp-nav-sublink i {
    width: 18px;
    text-align: center;
}

.hp-sidebar-footer {
    padding: 16px;
}

.hp-sidebar-status {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(148, 163, 184, .1);
    border-radius: 13px;
    background: rgba(148, 163, 184, .045);
}

.hp-sidebar-status strong,
.hp-sidebar-status small {
    display: block;
}

.hp-sidebar-status strong {
    color: #cbd5e1;
    font-size: .78rem;
}

.hp-sidebar-status small {
    margin-top: 2px;
    color: #64748b;
    font-size: .7rem;
}

.hp-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.hp-sidebar-overlay {
    position: fixed;
    z-index: 1040;
    inset: 0;
    display: none;
    background: rgba(2, 6, 23, .58);
    backdrop-filter: blur(3px);
}

.hp-topbar {
    position: fixed;
    z-index: 1035;
    top: 0;
    right: 0;
    left: var(--hp-sidebar-width);
    height: var(--hp-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 28px;
    border-bottom: 1px solid var(--hp-border);
    background: color-mix(in srgb, var(--hp-card-bg) 88%, transparent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, .035);
    backdrop-filter: blur(16px);
    transition: left .25s ease;
}

.hp-topbar-left,
.hp-topbar-actions {
    display: flex;
    align-items: center;
}

.hp-topbar-left {
    min-width: 0;
    gap: 14px;
}

.hp-topbar-actions {
    gap: 10px;
}

.hp-topbar-center {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 18px;
}

.hp-topbar-support-alert {
    display: grid;
    width: min(100%, 620px);
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--hp-primary) 32%, var(--hp-border));
    border-radius: 13px;
    color: var(--hp-ink);
    background: color-mix(in srgb, var(--hp-primary) 7%, var(--hp-card-bg));
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.hp-topbar-support-alert:hover {
    border-color: color-mix(in srgb, var(--hp-primary) 58%, var(--hp-border));
    color: var(--hp-ink);
    background: color-mix(in srgb, var(--hp-primary) 11%, var(--hp-card-bg));
    transform: translateY(-1px);
}

.hp-topbar-support-alert.is-priority {
    border-color: color-mix(in srgb, #f59e0b 48%, var(--hp-border));
    background: color-mix(in srgb, #f59e0b 10%, var(--hp-card-bg));
}

.hp-topbar-support-icon {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    font-size: 1rem;
}

.hp-topbar-support-alert.is-priority .hp-topbar-support-icon {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.hp-topbar-support-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.hp-topbar-support-copy strong,
.hp-topbar-support-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-topbar-support-copy strong {
    font-size: .76rem;
}

.hp-topbar-support-copy small {
    color: var(--hp-muted);
    font-size: .67rem;
}

.hp-topbar-support-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--hp-primary);
    font-size: .7rem;
    font-weight: 750;
}

.hp-page-context {
    min-width: 0;
}

.hp-page-context span,
.hp-page-context strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-page-context span {
    margin-bottom: 1px;
    color: var(--hp-muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hp-page-context strong {
    color: var(--hp-ink);
    font-size: 1.02rem;
}

.hp-icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    color: var(--hp-ink);
    background: var(--hp-card-bg);
    font-size: 1.15rem;
    transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.hp-icon-button::after {
    display: none;
}

.hp-icon-button:hover {
    color: var(--hp-primary);
    border-color: color-mix(in srgb, var(--hp-primary) 40%, var(--hp-border));
    transform: translateY(-1px);
}

.hp-mobile-menu {
    display: none;
}

.hp-environment-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 750;
    text-decoration: none;
    letter-spacing: .03em;
}

.hp-environment-pill span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.hp-environment-pill.is-test {
    color: #b45309;
    background: #fef3c7;
}

.hp-environment-pill.is-test span {
    background: #f59e0b;
}

.hp-environment-pill.is-live {
    color: #b91c1c;
    background: #fee2e2;
}

.hp-environment-pill.is-live span {
    background: #ef4444;
}

[data-bs-theme="dark"] .hp-environment-pill.is-test {
    color: #fbbf24;
    background: rgba(245, 158, 11, .12);
}

[data-bs-theme="dark"] .hp-environment-pill.is-live {
    color: #fca5a5;
    background: rgba(239, 68, 68, .13);
}

.hp-user-menu {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 9px 4px 5px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--hp-ink);
    background: transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

.hp-user-menu::after {
    display: none;
}

.hp-user-menu:hover,
.hp-user-menu[aria-expanded="true"] {
    border-color: var(--hp-border);
    background: var(--hp-soft-bg);
}

.hp-avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    font-size: .78rem;
    font-weight: 800;
}

.hp-user-copy {
    min-width: 0;
    text-align: left;
}

.hp-user-copy strong,
.hp-user-copy small {
    display: block;
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-user-copy strong {
    color: var(--hp-ink);
    font-size: .78rem;
}

.hp-user-copy small {
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-theme-menu,
.hp-profile-menu {
    min-width: 230px;
    padding: 8px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-card-bg);
    box-shadow: var(--hp-shadow);
}

.hp-theme-menu .dropdown-header {
    padding: 7px 10px 8px;
    color: var(--hp-muted);
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-theme-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
}

.hp-theme-choice.is-active {
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 9%, transparent);
}

.hp-theme-check {
    visibility: hidden;
}

.hp-theme-choice.is-active .hp-theme-check {
    visibility: visible;
}

body:not(.hp-auth-page) .container-fluid {
    max-width: 1680px;
}

body:not(.hp-auth-page) .card {
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: var(--hp-card-bg);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}

body:not(.hp-auth-page) .card-header {
    padding: 20px 22px;
    border-color: var(--hp-border);
    background: transparent;
}

body:not(.hp-auth-page) .card-body {
    padding: 22px;
}

body:not(.hp-auth-page) .table {
    --vz-table-bg: transparent;
    --vz-table-striped-bg: var(--hp-soft-bg);
    margin-bottom: 0;
}

body:not(.hp-auth-page) .table > :not(caption) > * > * {
    padding: 14px 12px;
    border-bottom-color: var(--hp-border);
}

body:not(.hp-auth-page) .table thead th {
    color: var(--hp-muted);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body:not(.hp-auth-page) .form-control,
body:not(.hp-auth-page) .form-select {
    min-height: 44px;
    border-color: var(--hp-border);
    border-radius: 11px;
    background-color: var(--hp-card-bg);
}

body:not(.hp-auth-page) .form-control:focus,
body:not(.hp-auth-page) .form-select:focus {
    border-color: color-mix(in srgb, var(--hp-primary) 60%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-primary) 12%, transparent);
}

.hp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 750;
}

.hp-status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hp-status-success {
    color: #15803d;
    background: rgba(34, 197, 94, .11);
}

.hp-status-warning {
    color: #b45309;
    background: rgba(245, 158, 11, .12);
}

.hp-status-danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, .11);
}

.hp-status-neutral {
    color: #475569;
    background: rgba(100, 116, 139, .11);
}

[data-bs-theme="dark"] .hp-status-success { color: #86efac; }
[data-bs-theme="dark"] .hp-status-warning { color: #fde68a; }
[data-bs-theme="dark"] .hp-status-danger { color: #fca5a5; }
[data-bs-theme="dark"] .hp-status-neutral { color: #cbd5e1; }

.hp-dashboard-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 190px;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(56, 189, 248, .42), transparent 26%),
        linear-gradient(135deg, #111b34, #26327c 68%, #0ea5e9);
    box-shadow: 0 24px 55px rgba(30, 41, 91, .22);
}

.hp-dashboard-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -86px;
    bottom: -140px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
}

.hp-dashboard-hero > * {
    position: relative;
    z-index: 1;
}

.hp-dashboard-hero h1 {
    margin: 8px 0 10px;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -.045em;
}

.hp-dashboard-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(226, 232, 240, .8);
    line-height: 1.65;
}

.hp-eyebrow {
    color: #7dd3fc;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-hero-actions .btn {
    white-space: nowrap;
    border-radius: 11px;
}

.hp-stat-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hp-stat-card .card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hp-stat-card .card-body > div {
    min-width: 0;
}

.hp-stat-label {
    display: block;
    margin-bottom: 12px;
    color: var(--hp-muted);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.hp-stat-value {
    display: block;
    margin: 0;
    color: var(--hp-ink);
    font-size: 2rem;
    font-weight: 760;
    letter-spacing: -.05em;
}

.hp-stat-meta {
    display: block;
    margin-top: 8px;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-stat-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.4rem;
}

.hp-panel-title {
    margin: 0;
    color: var(--hp-ink);
    font-size: 1rem;
    font-weight: 730;
}

.hp-panel-subtitle {
    margin: 4px 0 0;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-page-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--hp-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-page-title {
    margin: 0 0 7px;
    color: var(--hp-ink);
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    font-weight: 780;
    letter-spacing: -.045em;
}

.hp-mini-stat .card-body {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 104px;
}

.hp-mini-stat .card-body > span {
    width: 46px;
    height: 46px;
    display: inline-grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 11%, transparent);
    font-size: 1.35rem;
}

.hp-mini-stat strong,
.hp-mini-stat small {
    display: block;
}

.hp-mini-stat strong {
    color: var(--hp-ink);
    font-size: 1.6rem;
    line-height: 1.1;
}

.hp-mini-stat small {
    margin-top: 5px;
    color: var(--hp-muted);
    font-size: .76rem;
}

.hp-section-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.2rem;
}

.hp-empty-state {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 36px 20px;
    color: var(--hp-muted);
    text-align: center;
}

.hp-empty-state > i {
    margin-bottom: 4px;
    color: var(--hp-primary);
    font-size: 2.5rem;
}

.hp-empty-state strong {
    color: var(--hp-ink);
    font-size: 1rem;
}

.hp-empty-state span {
    max-width: 460px;
    font-size: .82rem;
}

.hp-feature-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 999px;
    background: var(--hp-border);
}

.hp-feature-dot.is-on {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .12);
}

.hp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    overflow: hidden;
}

.hp-detail-grid > div {
    min-height: 92px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-detail-grid > div:nth-child(odd) {
    border-right: 1px solid var(--hp-border);
}

.hp-detail-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.hp-detail-grid dt {
    margin-bottom: 7px;
    color: var(--hp-muted);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hp-detail-grid dd {
    margin: 0;
    color: var(--hp-ink);
    font-size: .9rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.hp-security-list {
    display: grid;
    gap: 18px;
}

.hp-security-list > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hp-security-list strong,
.hp-security-list small {
    display: block;
}

.hp-security-list strong {
    color: var(--hp-ink);
    font-size: .82rem;
}

.hp-security-list small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .72rem;
}

.hp-feature-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--hp-muted);
    background: var(--hp-soft-bg);
    font-size: 1.1rem;
}

.hp-feature-icon.is-on {
    color: #15803d;
    background: rgba(34, 197, 94, .12);
}

.hp-value-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-value-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--hp-ink);
    background: var(--hp-soft-bg);
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.hp-value-list i {
    color: var(--hp-primary);
}

.hp-service-card h2 {
    margin: 7px 0 4px;
    color: var(--hp-ink);
    font-size: 1.15rem;
    font-weight: 750;
}

.hp-service-card p {
    margin: 0;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-service-provider {
    color: var(--hp-primary);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.hp-service-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--hp-border);
    color: var(--hp-muted);
    font-size: .72rem;
}

.hp-service-meta i {
    margin-right: 4px;
    color: var(--hp-primary);
}

.hp-profile-summary {
    overflow: hidden;
    text-align: center;
}

.hp-profile-summary .card-body {
    padding: 34px 24px 28px;
}

.hp-profile-avatar {
    width: 78px;
    height: 78px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 16px;
    border: 6px solid color-mix(in srgb, var(--hp-primary) 12%, transparent);
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--hp-primary), var(--hp-cyan));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--hp-primary) 24%, transparent);
    font-size: 1.45rem;
    font-weight: 800;
}

.hp-profile-summary h2 {
    margin: 0;
    color: var(--hp-ink);
    font-size: 1.15rem;
    font-weight: 760;
}

.hp-profile-summary p {
    margin: 4px 0 14px;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--hp-border);
    background: var(--hp-soft-bg);
}

.hp-profile-stats > div {
    padding: 17px 12px;
}

.hp-profile-stats > div + div {
    border-left: 1px solid var(--hp-border);
}

.hp-profile-stats strong,
.hp-profile-stats small {
    display: block;
}

.hp-profile-stats strong {
    color: var(--hp-ink);
    font-size: 1.05rem;
}

.hp-profile-stats small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-account-meta {
    display: grid;
    gap: 15px;
}

.hp-account-meta > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-account-meta > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hp-account-meta span {
    color: var(--hp-muted);
    font-size: .74rem;
}

.hp-account-meta strong {
    max-width: 62%;
    color: var(--hp-ink);
    font-size: .76rem;
    text-align: right;
    overflow-wrap: anywhere;
}

.hp-password-policy {
    padding: 17px 19px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-password-policy > strong {
    display: block;
    margin-bottom: 12px;
    color: var(--hp-muted);
    font-size: .77rem;
}

.hp-password-policy > strong.is-valid {
    color: #16a34a;
}

.hp-password-policy ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-password-policy li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--hp-muted);
    font-size: .72rem;
}

.hp-password-policy li.is-valid {
    color: #16a34a;
}

.hp-current-session {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-current-session > div {
    min-width: 0;
    flex: 1;
}

.hp-current-session strong,
.hp-current-session small {
    display: block;
}

.hp-current-session strong {
    color: var(--hp-ink);
    font-size: .82rem;
}

.hp-current-session small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .67rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-session-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 13px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 11%, transparent);
    font-size: 1.2rem;
}

.hp-security-timeline {
    display: grid;
    gap: 18px;
}

.hp-security-timeline > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-security-timeline > div > span {
    width: 36px;
    height: 36px;
    display: inline-grid;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 9%, transparent);
}

.hp-security-timeline strong,
.hp-security-timeline small {
    display: block;
}

.hp-security-timeline strong {
    color: var(--hp-ink);
    font-size: .78rem;
}

.hp-security-timeline small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .67rem;
}

.hp-account-section-nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-card-bg);
}

.hp-account-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: var(--hp-muted);
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
}

.hp-account-section-nav a:hover {
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 8%, var(--hp-card-bg));
}

#profile,
#security,
#hestia-sync {
    scroll-margin-top: calc(var(--hp-topbar-height) + 24px);
}

.hp-account-sync-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hp-account-sync-note > i,
.hp-account-sync-list > div > span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--hp-primary) 10%, var(--hp-card-bg));
    font-size: 1.2rem;
}

.hp-account-sync-note strong,
.hp-account-sync-note small,
.hp-account-sync-list strong,
.hp-account-sync-list small {
    display: block;
}

.hp-account-sync-note small,
.hp-account-sync-list small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .72rem;
    line-height: 1.55;
}

.hp-account-sync-list {
    display: grid;
    gap: 13px;
}

.hp-account-sync-list > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-account-sync-list > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hp-account-sync-list em {
    grid-column: 2;
    justify-self: start;
    font-style: normal;
}

@media (max-width: 575.98px) {
    .hp-account-section-nav,
    .hp-account-section-nav a {
        width: 100%;
    }

    .hp-account-section-nav a {
        justify-content: center;
    }
}

.hp-usage-row + .hp-usage-row {
    margin-top: 24px;
}

.hp-usage-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 9px;
    font-size: .8rem;
}

.hp-usage-head span {
    color: var(--hp-muted);
}

.hp-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--hp-soft-bg);
}

.hp-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-cyan));
}

.hp-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hp-quick-action {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    color: var(--hp-ink);
    background: var(--hp-soft-bg);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hp-quick-action:hover {
    color: var(--hp-primary);
    border-color: color-mix(in srgb, var(--hp-primary) 38%, var(--hp-border));
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.hp-quick-action i {
    font-size: 1.5rem;
}

.hp-quick-action strong,
.hp-quick-action small {
    display: block;
}

.hp-quick-action strong {
    font-size: .82rem;
}

.hp-quick-action small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-module-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    background: var(--hp-card-bg);
    overflow-x: auto;
    scrollbar-width: thin;
}

.hp-module-tabs a {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 11px;
    color: var(--hp-muted);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.hp-module-tabs a:hover {
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 8%, transparent);
}

.hp-module-tabs a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hp-primary) 22%, transparent);
}

.hp-module-tabs-compact {
    width: fit-content;
    max-width: 100%;
}

.hp-stat-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hp-stat-link:hover {
    color: inherit;
    border-color: color-mix(in srgb, var(--hp-primary) 32%, var(--hp-border));
    box-shadow: 0 18px 38px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}

.hp-stat-icon-success {
    color: #15803d !important;
    background: rgba(34, 197, 94, .12) !important;
}

.hp-stat-icon-warning {
    color: #b45309 !important;
    background: rgba(245, 158, 11, .13) !important;
}

.hp-stat-icon-danger {
    color: #dc2626 !important;
    background: rgba(239, 68, 68, .12) !important;
}

.hp-evidence-list {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-evidence-list span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--hp-muted);
    font-size: .68rem;
    line-height: 1.35;
}

.hp-evidence-list i {
    margin-top: 1px;
    color: var(--hp-primary);
}

.hp-evidence-list .ri-alert-line {
    color: #d97706;
}

.hp-evidence-list .hp-evidence-note {
    max-width: 260px;
    margin-top: 2px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--hp-ink);
    background: color-mix(in srgb, var(--hp-primary) 8%, var(--hp-card-bg));
}

.hp-audit-score {
    min-width: 118px;
}

.hp-audit-score > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hp-audit-score strong {
    color: var(--hp-ink);
    font-size: 1rem;
}

.hp-audit-score > div:first-child span,
.hp-audit-score small {
    color: var(--hp-muted);
    font-size: .63rem;
}

.hp-audit-score small {
    display: block;
    margin: 1px 0 6px;
    font-weight: 700;
}

.hp-audit-score-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--hp-border);
}

.hp-audit-score-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.hp-audit-score.is-high .hp-audit-score-bar span {
    background: #22c55e;
}

.hp-audit-score.is-review .hp-audit-score-bar span {
    background: #f59e0b;
}

.hp-audit-score.is-critical .hp-audit-score-bar span {
    background: #ef4444;
}

.hp-validation-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
}

.hp-validation-state.is-ready {
    color: #15803d;
}

.hp-validation-state.is-review {
    color: #b45309;
}

.hp-validation-state.is-empty {
    color: var(--hp-muted);
}

.hp-resource-usage {
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.hp-resource-usage > div {
    min-width: 0;
    flex: 1;
}

.hp-resource-usage small {
    display: block;
    margin-top: 8px;
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-resource-icon {
    width: 46px;
    height: 46px;
    display: inline-grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.3rem;
}

.hp-health-list {
    display: grid;
    gap: 20px;
}

.hp-health-list > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-health-list > div > span {
    width: 39px;
    height: 39px;
    display: inline-grid;
    flex: 0 0 39px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.08rem;
}

.hp-health-list > div > span.is-good {
    color: #15803d;
    background: rgba(34, 197, 94, .12);
}

.hp-health-list > div > span.is-warning {
    color: #b45309;
    background: rgba(245, 158, 11, .13);
}

.hp-health-list strong,
.hp-health-list small {
    display: block;
}

.hp-health-list strong {
    color: var(--hp-ink);
    font-size: .78rem;
}

.hp-health-list small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-progress-sm {
    height: 5px;
}

.hp-remote-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.hp-remote-state.is-present {
    color: #15803d;
}

.hp-remote-state.is-missing {
    color: #dc2626;
}

.hp-scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hp-scope-badge.is-infrastructure {
    color: #7c3aed;
    background: rgba(124, 58, 237, .11);
}

.hp-scope-badge.is-customer {
    color: #0369a1;
    background: rgba(14, 165, 233, .11);
}

.hp-empty-compact {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hp-empty-compact strong,
.hp-empty-compact small {
    display: block;
}

.hp-empty-compact strong {
    color: var(--hp-ink);
    font-size: .82rem;
}

.hp-empty-compact small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-owner-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-owner-avatar {
    width: 46px;
    height: 46px;
    display: inline-grid;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    font-size: .8rem;
    font-weight: 800;
}

.hp-owner-card strong,
.hp-owner-card small {
    display: block;
}

.hp-owner-card strong {
    color: var(--hp-ink);
    font-size: .83rem;
}

.hp-owner-card small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .68rem;
    overflow-wrap: anywhere;
}

.hp-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-metric-strip > div {
    padding: 13px 8px;
    text-align: center;
}

.hp-metric-strip > div + div {
    border-left: 1px solid var(--hp-border);
}

.hp-metric-strip strong,
.hp-metric-strip small {
    display: block;
}

.hp-metric-strip strong {
    color: var(--hp-ink);
    font-size: 1rem;
}

.hp-metric-strip small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .62rem;
}

.hp-mini-summary .card-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hp-mini-summary strong,
.hp-mini-summary small {
    display: block;
}

.hp-mini-summary strong {
    color: var(--hp-ink);
    font-size: 1.45rem;
    line-height: 1;
}

.hp-mini-summary small {
    margin-top: 5px;
    color: var(--hp-muted);
    font-size: .72rem;
}

.hp-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hp-package-card {
    padding: 20px;
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    background: var(--hp-soft-bg);
}

.hp-package-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hp-package-head span {
    color: var(--hp-primary);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.hp-package-head h2 {
    margin: 4px 0 0;
    color: var(--hp-ink);
    font-size: 1rem;
    font-weight: 760;
}

.hp-package-meter {
    height: 6px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 999px;
    background: var(--hp-border);
}

.hp-package-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hp-primary), var(--hp-cyan));
}

.hp-package-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.hp-package-stats > div {
    min-width: 0;
    padding: 9px 6px;
    border-radius: 10px;
    background: var(--hp-card-bg);
    text-align: center;
}

.hp-package-stats strong,
.hp-package-stats small {
    display: block;
}

.hp-package-stats strong {
    color: var(--hp-ink);
    font-size: .92rem;
}

.hp-package-stats small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .59rem;
}

.hp-package-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-package-resources i {
    margin-right: 5px;
    color: var(--hp-primary);
}

.hp-dealer-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(34, 211, 238, .32), transparent 24%),
        linear-gradient(135deg, #0f3b5f 0%, #0d6b78 56%, #0b8b7c 100%);
}

.hp-dealer-pulse {
    position: relative;
    z-index: 1;
    min-width: 180px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 22px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    text-align: center;
}

.hp-dealer-pulse span,
.hp-dealer-pulse strong,
.hp-dealer-pulse small {
    display: block;
}

.hp-dealer-pulse span {
    margin-bottom: 12px;
    font-size: 1.75rem;
}

.hp-dealer-pulse strong {
    font-size: 2.35rem;
    line-height: 1;
}

.hp-dealer-pulse small {
    margin-top: 7px;
    color: rgba(255, 255, 255, .72);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hp-entity-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.hp-entity-avatar {
    width: 38px;
    height: 38px;
    display: inline-grid;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    font-size: .72rem;
    font-weight: 800;
}

.hp-entity-avatar.is-dealer {
    background: linear-gradient(135deg, #0d6b78, #0b8b7c);
}

.hp-entity-cell strong,
.hp-entity-cell small,
.hp-entity-cell a {
    display: block;
}

.hp-entity-cell a {
    color: var(--hp-ink);
    font-weight: 750;
}

.hp-entity-cell small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-service-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hp-service-counts span {
    padding: 5px 8px;
    border: 1px solid var(--hp-border);
    border-radius: 9px;
    color: var(--hp-muted);
    background: var(--hp-soft-bg);
    font-size: .66rem;
}

.hp-service-counts strong {
    color: var(--hp-ink);
}

.hp-empty-state-compact {
    min-height: 190px;
}

.hp-stat-value-money {
    font-size: clamp(1.25rem, 2vw, 1.8rem) !important;
}

.hp-wallet-stat {
    background: linear-gradient(145deg, var(--hp-card-bg), rgba(13, 107, 120, .09));
}

.hp-order-flow,
.hp-order-timeline {
    display: grid;
    gap: 0;
}

.hp-order-flow > div,
.hp-order-timeline > div {
    position: relative;
    display: flex;
    gap: 14px;
    padding-bottom: 22px;
}

.hp-order-flow > div:last-child,
.hp-order-timeline > div:last-child {
    padding-bottom: 0;
}

.hp-order-flow > div::after,
.hp-order-timeline > div::after {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 15px;
    width: 1px;
    background: var(--hp-border);
}

.hp-order-flow > div:last-child::after,
.hp-order-timeline > div:last-child::after {
    display: none;
}

.hp-order-flow span,
.hp-order-timeline span {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    display: inline-grid;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid var(--hp-border);
    border-radius: 50%;
    color: var(--hp-muted);
    background: var(--hp-card-bg);
    font-size: .72rem;
    font-weight: 800;
}

.hp-order-flow .is-ready span,
.hp-order-timeline .is-complete span {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
}

.hp-order-flow strong,
.hp-order-flow small,
.hp-order-timeline strong,
.hp-order-timeline small {
    display: block;
}

.hp-order-flow strong,
.hp-order-timeline strong {
    color: var(--hp-ink);
    font-size: .83rem;
}

.hp-order-flow small,
.hp-order-timeline small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .7rem;
}

.hp-checkout-summary {
    display: grid;
    gap: 12px;
}

.hp-checkout-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--hp-muted);
    font-size: .78rem;
}

.hp-checkout-summary strong {
    color: var(--hp-ink);
}

.hp-checkout-summary .is-total {
    margin-top: 4px;
    padding-top: 15px;
    border-top: 1px solid var(--hp-border);
}

.hp-checkout-summary .is-total strong {
    color: var(--hp-primary);
    font-size: 1.2rem;
}

.hp-order-decision-form {
    min-width: 250px;
}

.hp-status-info {
    color: #0369a1;
    background: rgba(14, 165, 233, .12);
}

[data-bs-theme="dark"] .hp-status-info {
    color: #7dd3fc;
}

.hp-storefront-order-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    width: 100%;
}

.hp-storefront-order-form .form-select {
    min-width: 0;
    font-size: .76rem;
}

.hp-cart-item {
    overflow: hidden;
}

.hp-cart-item-head,
.hp-order-item-main,
.hp-order-item-meta,
.hp-task-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hp-cart-price {
    color: var(--hp-primary);
    font-size: 1rem;
    white-space: nowrap;
}

.hp-checkout-card {
    position: sticky;
    top: calc(var(--hp-topbar-height) + 20px);
}

.hp-order-item {
    padding: 18px;
    border: 1px solid var(--hp-border);
    border-radius: 15px;
    background: var(--hp-soft-bg);
}

.hp-order-item-main > div {
    min-width: 0;
}

.hp-order-item-main strong,
.hp-order-item-main small {
    display: block;
}

.hp-order-item-main small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-order-item-meta {
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--hp-border);
}

.hp-order-item-meta > span:not(.hp-status-badge) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--hp-muted);
    font-size: .69rem;
}

.hp-order-item-meta i {
    color: var(--hp-primary);
}

.hp-task-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

.hp-task-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-order-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.hp-order-facts > div {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hp-order-facts > div:first-child {
    padding-top: 0;
}

.hp-order-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hp-order-facts dt {
    color: var(--hp-muted);
    font-size: .68rem;
    font-weight: 700;
}

.hp-order-facts dd {
    margin: 0;
    color: var(--hp-ink);
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.hp-order-facts dd small {
    display: block;
    margin-top: 3px;
    color: var(--hp-muted);
}

.hp-billing-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.hp-billing-currency-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.hp-billing-currency-head strong {
    color: var(--hp-primary);
    font-size: 1.08rem;
}

.hp-billing-currency-head span {
    color: var(--hp-muted);
    font-size: .68rem;
    font-weight: 700;
}

.hp-billing-money-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hp-billing-money-grid > div {
    min-width: 0;
    padding: 10px;
    border-radius: 11px;
    background: var(--hp-soft-bg);
}

.hp-billing-money-grid small,
.hp-billing-money-grid strong {
    display: block;
}

.hp-billing-money-grid small {
    color: var(--hp-muted);
    font-size: .58rem;
}

.hp-billing-money-grid strong {
    margin-top: 4px;
    color: var(--hp-ink);
    font-size: .75rem;
    overflow-wrap: anywhere;
}

.hp-inline-invoice-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.hp-inline-invoice-form .form-control {
    width: 150px;
}

.hp-invoice-document {
    overflow: hidden;
}

.hp-invoice-document .card-body {
    padding: clamp(24px, 4vw, 52px);
}

.hp-invoice-head,
.hp-invoice-brand,
.hp-invoice-parties,
.hp-invoice-bottom,
.hp-order-invoice-link,
.hp-finance-guard {
    display: flex;
}

.hp-invoice-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-invoice-brand {
    align-items: center;
    gap: 13px;
}

.hp-invoice-brand img {
    width: 46px;
    height: 46px;
}

.hp-invoice-brand strong,
.hp-invoice-brand small,
.hp-invoice-head .text-end small,
.hp-invoice-parties strong,
.hp-invoice-parties small,
.hp-invoice-table td small,
.hp-invoice-bottom > div:first-child > span {
    display: block;
}

.hp-invoice-brand strong {
    color: var(--hp-ink);
    font-size: 1rem;
}

.hp-invoice-brand small,
.hp-invoice-head .text-end small,
.hp-invoice-parties small,
.hp-invoice-table td small,
.hp-invoice-bottom small {
    color: var(--hp-muted);
    font-size: .68rem;
}

.hp-invoice-head h2 {
    margin: 12px 0 7px;
    color: var(--hp-ink);
    font-size: 1.45rem;
    letter-spacing: .02em;
}

.hp-invoice-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.hp-invoice-parties > div {
    padding: 18px;
    border-radius: 14px;
    background: var(--hp-soft-bg);
}

.hp-invoice-parties > div > span,
.hp-invoice-bottom > div:first-child > span {
    margin-bottom: 8px;
    color: var(--hp-primary);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .09em;
}

.hp-invoice-parties strong {
    margin-bottom: 5px;
    color: var(--hp-ink);
}

.hp-invoice-parties a {
    display: inline-block;
    margin-top: 7px;
    font-size: .68rem;
    font-weight: 700;
}

.hp-invoice-table {
    margin-bottom: 30px;
}

.hp-invoice-table th {
    padding-top: 13px;
    padding-bottom: 13px;
    background: var(--hp-soft-bg);
}

.hp-invoice-table td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.hp-invoice-table td strong {
    color: var(--hp-ink);
}

.hp-invoice-bottom {
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
}

.hp-invoice-bottom > div:first-child {
    max-width: 480px;
}

.hp-invoice-bottom p {
    margin: 0 0 8px;
    color: var(--hp-ink);
    font-size: .75rem;
}

.hp-invoice-totals {
    width: min(100%, 370px);
    display: grid;
    gap: 10px;
}

.hp-invoice-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--hp-muted);
    font-size: .74rem;
}

.hp-invoice-totals strong {
    color: var(--hp-ink);
}

.hp-invoice-totals .is-total,
.hp-invoice-totals .is-due {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--hp-border);
}

.hp-invoice-totals .is-total strong {
    color: var(--hp-primary);
    font-size: 1.15rem;
}

.hp-invoice-totals .is-paid strong {
    color: #15803d;
}

.hp-invoice-totals .is-due strong {
    color: #b45309;
    font-size: 1rem;
}

.hp-finance-guard {
    align-items: flex-start;
    gap: 13px;
}

.hp-finance-guard > i {
    width: 40px;
    height: 40px;
    display: inline-grid;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    color: #15803d;
    background: rgba(34, 197, 94, .12);
    font-size: 1.15rem;
}

.hp-finance-guard strong {
    color: var(--hp-ink);
    font-size: .78rem;
}

.hp-finance-guard p {
    margin: 5px 0 0;
    color: var(--hp-muted);
    font-size: .68rem;
    line-height: 1.55;
}

.hp-order-invoice-link {
    align-items: center;
    gap: 13px;
}

.hp-order-invoice-link > div {
    min-width: 0;
    flex: 1;
}

.hp-order-invoice-link strong,
.hp-order-invoice-link small {
    display: block;
}

.hp-order-invoice-link .hp-status-badge {
    margin: 5px 0;
}

.hp-order-invoice-link small {
    color: var(--hp-muted);
    font-size: .68rem;
}

body:not(.hp-auth-page) .footer {
    position: static !important;
    height: auto !important;
    padding: 18px 28px 24px !important;
    color: var(--hp-muted);
    background: transparent !important;
}

.hp-footer-content {
    max-width: 1680px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--hp-border);
    font-size: .75rem;
}

@media (max-width: 1199.98px) {
    .hp-sidebar {
        transform: translateX(-102%);
        box-shadow: 24px 0 60px rgba(2, 6, 23, .35);
        transition: transform .25s ease;
    }

    .hp-sidebar-close,
    .hp-mobile-menu {
        display: inline-grid;
    }

    body.hp-sidebar-open {
        overflow: hidden;
    }

    body.hp-sidebar-open .hp-sidebar {
        transform: translateX(0);
    }

    body.hp-sidebar-open .hp-sidebar-overlay {
        display: block;
    }

    .hp-topbar {
        left: 0;
    }

    body:not(.hp-auth-page) .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    :root {
        --hp-topbar-height: 68px;
    }

    .hp-topbar {
        padding: 0 15px;
    }

    .hp-page-context span,
    .hp-environment-pill,
    .hp-user-copy,
    .hp-user-menu > .ri-arrow-down-s-line {
        display: none;
    }

    .hp-page-context strong {
        max-width: 150px;
        font-size: .88rem;
    }

    .hp-user-menu {
        padding: 4px;
    }

    body:not(.hp-auth-page) .page-content {
        padding: calc(var(--hp-topbar-height) + 20px) 14px 24px !important;
    }

    .hp-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-dealer-pulse {
        width: 100%;
        min-width: 0;
    }

    .hp-quick-grid {
        grid-template-columns: 1fr;
    }

    .hp-module-tabs {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .hp-package-grid {
        grid-template-columns: 1fr;
    }

    .hp-package-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-package-head .btn {
        align-self: flex-start;
    }

    .hp-detail-grid {
        grid-template-columns: 1fr;
    }

    .hp-detail-grid > div,
    .hp-detail-grid > div:nth-child(odd),
    .hp-detail-grid > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--hp-border);
    }

    .hp-detail-grid > div:last-child {
        border-bottom: 0;
    }

    .hp-password-policy ul {
        grid-template-columns: 1fr;
    }

    .hp-footer-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-storefront-order-form {
        grid-template-columns: 1fr;
    }

    .hp-cart-item-head,
    .hp-order-item-main {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .hp-cart-item-head .text-end,
    .hp-order-item-main > strong:last-child {
        width: 100%;
        margin-left: 50px !important;
        text-align: left !important;
    }

    .hp-checkout-card {
        position: static;
    }

    .hp-billing-money-grid,
    .hp-invoice-parties {
        grid-template-columns: 1fr;
    }

    .hp-inline-invoice-form,
    .hp-invoice-head,
    .hp-invoice-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-inline-invoice-form .form-control,
    .hp-invoice-totals {
        width: 100%;
    }

    .hp-invoice-head .text-end {
        text-align: left !important;
    }
}

.hp-anchor-section {
    scroll-margin-top: 92px;
}

.hp-coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px dashed var(--hp-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--hp-primary) 4%, transparent);
}

.hp-coupon-box > div {
    display: grid;
    gap: 2px;
}

.hp-coupon-box small,
.hp-coupon-box span {
    color: var(--hp-muted);
}

.hp-pricing-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #15803d;
    background: rgba(34, 197, 94, 0.09);
    font-size: 0.82rem;
    font-weight: 600;
}

.hp-ticket-unread {
    background: color-mix(in srgb, var(--hp-primary) 5%, transparent);
}

.hp-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-primary) 12%, transparent);
}

.hp-ticket-thread {
    display: grid;
    gap: 18px;
}

.hp-ticket-message {
    max-width: 88%;
    padding: 18px;
    border: 1px solid var(--hp-border);
    border-radius: 18px 18px 18px 5px;
    background: var(--hp-card);
}

.hp-ticket-message.is-own,
.hp-ticket-message.is-staff {
    margin-left: auto;
    border-color: color-mix(in srgb, var(--hp-primary) 24%, var(--hp-border));
    border-radius: 18px 18px 5px 18px;
    background: color-mix(in srgb, var(--hp-primary) 7%, var(--hp-card));
}

.hp-ticket-message.is-customer {
    margin-right: auto;
}

.hp-ticket-message.is-internal {
    max-width: 100%;
    border-color: rgba(245, 158, 11, 0.3);
    border-style: dashed;
    background: rgba(245, 158, 11, 0.08);
}

.hp-ticket-message-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hp-ticket-message-head > div {
    display: grid;
}

.hp-ticket-message-head small {
    color: var(--hp-muted);
}

.hp-ticket-message-body {
    color: var(--hp-text);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hp-internal-label {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(245, 158, 11, 0.18);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-bs-theme="dark"] .hp-internal-label {
    color: #fcd34d;
}

.hp-notification-trigger {
    position: relative;
}

.hp-cart-trigger {
    position: relative;
    text-decoration: none;
}

.hp-cart-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hp-card-bg);
    border-radius: 999px;
    color: #fff;
    background: var(--hp-primary);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.hp-notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--hp-card-bg);
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.hp-notification-menu {
    width: min(390px, calc(100vw - 24px));
    padding: 0;
    overflow: hidden;
    border-color: var(--hp-border);
    border-radius: 16px;
    background: var(--hp-card-bg);
    opacity: 1;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hp-notification-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--hp-border);
}

.hp-notification-menu-head > div {
    display: grid;
    gap: 2px;
}

.hp-notification-menu-head small,
.hp-notification-menu-item small,
.hp-notification-menu-item em {
    color: var(--hp-muted);
}

.hp-notification-menu-head button {
    padding: 0;
    border: 0;
    color: var(--hp-primary);
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-notification-menu-list {
    max-height: 390px;
    overflow-y: auto;
}

.hp-notification-menu-item {
    margin: 0;
}

.hp-notification-menu-item > button {
    display: grid;
    width: 100%;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px 18px;
    border: 0;
    border-bottom: 1px solid var(--hp-border);
    color: var(--hp-text);
    background: transparent;
    text-align: left;
}

.hp-notification-menu-item > button:hover,
.hp-notification-menu-item.is-unread > button {
    background: color-mix(in srgb, var(--hp-primary) 6%, var(--hp-card-bg));
}

.hp-notification-menu-item > button > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.hp-notification-menu-item strong,
.hp-notification-menu-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-notification-menu-item em {
    font-size: 0.68rem;
    font-style: normal;
}

.hp-notification-menu-icon,
.hp-notification-symbol {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--hp-primary);
    background: color-mix(in srgb, var(--hp-primary) 11%, transparent);
    font-size: 1.15rem;
}

.hp-notification-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.hp-notification-menu-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 34px 20px;
    color: var(--hp-muted);
    text-align: center;
}

.hp-notification-menu-empty i {
    font-size: 1.8rem;
}

.hp-notification-menu-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 18px;
    color: var(--hp-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.hp-notification-feed,
.hp-preference-list {
    display: grid;
}

.hp-notification-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px 22px;
    align-items: flex-start;
    border-bottom: 1px solid var(--hp-border);
}

.hp-notification-row:last-child,
.hp-preference-item:last-child {
    border-bottom: 0;
}

.hp-notification-row.is-unread {
    background: color-mix(in srgb, var(--hp-primary) 5%, transparent);
}

.hp-notification-symbol.is-success {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}

.hp-notification-symbol.is-warning {
    color: #b45309;
    background: rgba(245, 158, 11, 0.13);
}

.hp-notification-symbol.is-danger {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.12);
}

.hp-notification-content p {
    margin: 0 0 6px;
    color: var(--hp-muted);
    line-height: 1.55;
}

.hp-notification-content small {
    color: var(--hp-muted);
}

.hp-notification-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hp-preference-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px 22px;
    align-items: center;
    border-bottom: 1px solid var(--hp-border);
    cursor: pointer;
}

.hp-preference-item:hover {
    background: color-mix(in srgb, var(--hp-primary) 3%, transparent);
}

.hp-preference-item.is-mandatory {
    cursor: default;
}

.hp-preference-copy {
    display: grid;
    gap: 3px;
}

.hp-preference-copy small {
    color: var(--hp-muted);
}

.hp-preference-copy em {
    width: fit-content;
    margin-top: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #15803d;
    background: rgba(34, 197, 94, 0.1);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 700;
}

[data-bs-theme="dark"] .hp-notification-symbol.is-success,
[data-bs-theme="dark"] .hp-preference-copy em {
    color: #86efac;
}

[data-bs-theme="dark"] .hp-notification-symbol.is-warning {
    color: #fcd34d;
}

[data-bs-theme="dark"] .hp-notification-symbol.is-danger {
    color: #fca5a5;
}

@media (max-width: 575.98px) {
    .hp-ticket-message {
        max-width: 100%;
    }

    .hp-notification-row {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 17px;
    }

    .hp-notification-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 58px;
    }

    .hp-preference-item {
        padding: 17px;
    }
}

[data-bs-theme="dark"] .hp-pricing-note {
    color: #86efac;
}

.hp-bank-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.hp-bank-account-card {
    padding: 18px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(64, 81, 137, 0.06), rgba(10, 179, 156, 0.04));
}

.hp-bank-account-label {
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-bank-account-card h3 {
    margin: 3px 0 0;
    font-size: 1rem;
}

.hp-bank-account-card dl {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
}

.hp-bank-account-card dl > div {
    display: grid;
    gap: 2px;
}

.hp-bank-account-card dt {
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.hp-bank-account-card dd {
    margin: 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.hp-bank-account-card p {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--vz-border-color, #e9ebec);
    color: var(--hp-muted);
    font-size: 0.8rem;
}

.hp-transfer-review-form {
    display: grid;
    min-width: 230px;
    gap: 7px;
}

@media (min-width: 1200px) {
    .hp-sticky-card {
        position: sticky;
        top: 94px;
    }
}

[data-bs-theme="dark"] .hp-bank-account-card {
    background: linear-gradient(145deg, rgba(129, 140, 248, 0.1), rgba(45, 212, 191, 0.06));
}

.hp-stat-value-text {
    font-size: clamp(1.15rem, 2vw, 1.65rem) !important;
}

.hp-knowledge-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 260px;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 15%, rgba(45, 212, 191, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 233, 0.08));
}

.hp-knowledge-hero > div:first-child {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
}

.hp-knowledge-hero p {
    max-width: 620px;
    margin: 10px 0 24px;
    color: var(--hp-muted);
}

.hp-knowledge-hero-icon {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 44px;
    color: var(--hp-primary);
    background: rgba(255, 255, 255, 0.42);
    font-size: 4.5rem;
    transform: rotate(5deg);
}

.hp-knowledge-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 680px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 16px;
    background: var(--vz-card-bg, #fff);
    box-shadow: 0 16px 40px rgba(30, 41, 59, 0.1);
}

.hp-knowledge-search > i {
    color: var(--hp-muted);
    font-size: 1.2rem;
}

.hp-knowledge-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--vz-body-color);
    background: transparent;
}

.hp-knowledge-search button {
    padding: 10px 18px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--hp-primary);
    font-weight: 700;
}

.hp-knowledge-featured {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-knowledge-featured:hover {
    color: inherit;
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 16px 36px rgba(30, 41, 59, 0.1);
    transform: translateY(-3px);
}

.hp-knowledge-featured .card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
}

.hp-knowledge-featured .card-body > span,
.hp-knowledge-list-icon,
.hp-help-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: var(--hp-primary);
    background: rgba(79, 70, 229, 0.1);
    font-size: 1.35rem;
}

.hp-knowledge-featured small,
.hp-knowledge-list small {
    color: var(--hp-primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hp-knowledge-featured h3 {
    margin: 4px 0 8px;
    font-size: 1rem;
}

.hp-knowledge-featured p,
.hp-knowledge-list p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--hp-muted);
    font-size: 0.82rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-knowledge-featured em,
.hp-knowledge-list em {
    color: var(--hp-muted);
    font-size: 0.72rem;
    font-style: normal;
}

.hp-knowledge-list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hp-knowledge-list > a:last-child {
    border-bottom: 0;
}

.hp-knowledge-list > a:hover {
    background: rgba(79, 70, 229, 0.045);
}

.hp-knowledge-list strong {
    display: block;
    margin: 3px 0 5px;
}

.hp-knowledge-list > a > i {
    color: var(--hp-muted);
    font-size: 1.25rem;
}

.hp-knowledge-categories,
.hp-related-articles {
    display: grid;
    gap: 10px;
}

.hp-knowledge-categories > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
}

.hp-knowledge-categories > a > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--hp-primary);
    background: rgba(79, 70, 229, 0.1);
}

.hp-knowledge-categories strong,
.hp-knowledge-categories small {
    display: block;
}

.hp-knowledge-categories small {
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-knowledge-article .card-body {
    padding: clamp(24px, 5vw, 54px);
}

.hp-knowledge-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
    color: var(--hp-muted);
    font-size: 0.78rem;
}

.hp-knowledge-content {
    color: var(--vz-body-color);
    font-size: 0.96rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.hp-knowledge-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--vz-border-color, #e9ebec);
}

.hp-knowledge-tags span {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--hp-primary);
    background: rgba(79, 70, 229, 0.1);
    font-size: 0.72rem;
    font-weight: 700;
}

.hp-knowledge-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hp-knowledge-feedback p {
    margin: 3px 0 0;
    color: var(--hp-muted);
    font-size: 0.8rem;
}

.hp-related-articles > a {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.hp-related-articles > a:not(.btn):hover {
    border-color: rgba(79, 70, 229, 0.35);
}

.hp-related-articles small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--hp-muted);
    font-size: 0.75rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-knowledge-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.7;
}

.hp-component-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hp-component-picker label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 12px;
    cursor: pointer;
}

.hp-component-picker label:has(input:checked) {
    border-color: rgba(79, 70, 229, 0.45);
    background: rgba(79, 70, 229, 0.06);
}

.hp-component-picker strong,
.hp-component-picker small {
    display: block;
}

.hp-component-picker small {
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-status-timeline {
    display: grid;
    gap: 0;
}

.hp-status-timeline > div {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 24px;
}

.hp-status-timeline > div:not(:last-child)::before {
    position: absolute;
    top: 38px;
    bottom: 2px;
    left: 18px;
    width: 2px;
    background: var(--vz-border-color, #e9ebec);
    content: "";
}

.hp-status-timeline > div > span {
    z-index: 1;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--vz-card-bg, #fff);
}

.hp-status-timeline > div > span.hp-status-success { color: #16a34a; }
.hp-status-timeline > div > span.hp-status-warning { color: #d97706; }
.hp-status-timeline > div > span.hp-status-danger { color: #dc2626; }
.hp-status-timeline > div > span.hp-status-info { color: #0284c7; }

.hp-status-timeline section {
    padding: 14px 16px;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 14px;
}

.hp-status-timeline section > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hp-status-timeline time,
.hp-status-timeline small {
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-status-timeline p {
    margin: 10px 0 6px;
    font-size: 0.84rem;
}

.hp-public-status-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(79, 70, 229, 0.08), transparent 28%),
        var(--hp-app-bg);
}

.hp-status-public-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--hp-border);
    background: color-mix(in srgb, var(--hp-card-bg) 92%, transparent);
    color: var(--hp-ink);
    backdrop-filter: blur(18px);
}

.hp-status-public-header .container,
.hp-status-public-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.hp-status-public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.hp-status-public-brand img {
    width: 42px;
    height: 42px;
}

.hp-status-public-brand strong,
.hp-status-public-brand small {
    display: block;
}

.hp-status-public-brand small {
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-status-public-main {
    padding: 52px 0 70px;
}

.hp-status-overall {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
    padding: 28px 32px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.13), rgba(16, 185, 129, 0.06));
}

.hp-status-overall:not(.is-operational) {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.06));
}

.hp-status-overall.is-unknown {
    border-color: rgba(59, 130, 246, 0.24);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.05));
}

.hp-status-overall > span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 18px;
    color: #16a34a;
    background: rgba(255, 255, 255, 0.56);
    font-size: 2rem;
}

.hp-status-overall:not(.is-operational) > span {
    color: #dc2626;
}

.hp-status-overall.is-unknown > span {
    color: #2563eb;
}

.hp-status-overall small {
    color: var(--hp-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hp-status-overall h1 {
    margin: 4px 0 4px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.hp-status-overall p {
    margin: 0;
    color: var(--hp-muted);
}

.hp-status-overall time {
    color: var(--hp-muted);
    font-size: 0.76rem;
    white-space: nowrap;
}

.hp-status-public-card {
    border-radius: 20px;
}

.hp-status-public-card .card-header {
    padding: 22px 24px;
}

.hp-status-public-card .card-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.hp-status-public-card .card-header p {
    margin: 4px 0 0;
    color: var(--hp-muted);
    font-size: 0.78rem;
}

.hp-status-component-group + .hp-status-component-group {
    margin-top: 24px;
}

.hp-status-component-group h3 {
    margin-bottom: 10px;
    color: var(--hp-muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hp-status-component-group > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--vz-border-color, #e9ebec);
}

.hp-status-component-group > div:last-child {
    border-bottom: 0;
}

.hp-status-component-group strong,
.hp-status-component-group small {
    display: block;
}

.hp-status-component-group small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-status-component-group em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.hp-status-component-group em.hp-status-success { color: #16a34a; }
.hp-status-component-group em.hp-status-warning { color: #d97706; }
.hp-status-component-group em.hp-status-danger { color: #dc2626; }
.hp-status-component-group em.hp-status-info { color: #0284c7; }

.hp-status-clear {
    padding: 32px 12px;
    text-align: center;
}

.hp-status-clear span {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 22px;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.12);
    font-size: 2.2rem;
}

.hp-status-clear p {
    max-width: 340px;
    margin: 6px auto 0;
    color: var(--hp-muted);
    font-size: 0.82rem;
}

.hp-public-incident + .hp-public-incident {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--vz-border-color, #e9ebec);
}

.hp-public-incident h3 {
    margin: 14px 0 7px;
    font-size: 1rem;
}

.hp-public-incident > p {
    color: var(--hp-muted);
    font-size: 0.82rem;
}

.hp-public-incident > small {
    color: var(--hp-muted);
    font-size: 0.72rem;
}

.hp-public-incident-updates {
    display: grid;
    gap: 0;
    margin-top: 18px;
    padding-left: 14px;
    border-left: 2px solid var(--vz-border-color, #e9ebec);
}

.hp-public-incident-updates > div {
    padding: 0 0 16px 12px;
}

.hp-public-incident-updates time,
.hp-public-incident-updates strong {
    display: block;
    font-size: 0.72rem;
}

.hp-public-incident-updates time {
    color: var(--hp-muted);
}

.hp-public-incident-updates p {
    margin: 5px 0 0;
    font-size: 0.78rem;
}

.hp-status-history {
    display: grid;
    gap: 16px;
}

.hp-status-history article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.hp-status-history strong,
.hp-status-history small {
    display: block;
}

.hp-status-history p {
    margin: 4px 0;
    color: var(--hp-muted);
    font-size: 0.8rem;
}

.hp-status-history small {
    color: var(--hp-muted);
    font-size: 0.7rem;
}

.hp-status-subscribe {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    background: var(--hp-card-bg);
}

.hp-status-subscribe > i {
    color: var(--hp-primary);
    font-size: 1.5rem;
}

.hp-status-subscribe p {
    margin: 3px 0 0;
    color: var(--hp-muted);
    font-size: 0.75rem;
}

.hp-status-subscribe a {
    font-size: 0.78rem;
    font-weight: 700;
}

.hp-status-public-footer {
    border-top: 1px solid var(--hp-border);
    color: var(--hp-muted);
    background: var(--hp-card-bg);
    font-size: 0.78rem;
}

[data-bs-theme="dark"] .hp-knowledge-hero-icon,
[data-bs-theme="dark"] .hp-status-overall > span {
    background: rgba(15, 23, 42, 0.5);
}

@media (max-width: 767.98px) {
    .hp-knowledge-hero-icon {
        display: none;
    }

    .hp-knowledge-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hp-knowledge-search button {
        grid-column: 1 / -1;
    }

    .hp-knowledge-feedback,
    .hp-status-public-header .container,
    .hp-status-public-footer .container {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-component-picker {
        grid-template-columns: 1fr;
    }

    .hp-status-overall {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px;
    }

    .hp-status-overall time {
        grid-column: 1 / -1;
    }

    .hp-status-subscribe {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hp-status-subscribe a {
        grid-column: 1 / -1;
    }
}

/* Phase 7A: domain automation */
.hp-domain-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hp-primary) 18%, var(--hp-border));
    border-radius: var(--hp-radius);
    background:
        radial-gradient(circle at 94% 20%, color-mix(in srgb, var(--hp-cyan) 18%, transparent), transparent 36%),
        var(--vz-card-bg, var(--hp-surface));
}

.hp-domain-hero p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--hp-muted);
}

.hp-environment-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 14px 16px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--hp-surface) 94%, transparent);
}

.hp-environment-card > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.hp-environment-card span,
.hp-environment-card small,
.hp-environment-card strong {
    display: block;
}

.hp-environment-card small {
    color: var(--hp-muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.hp-environment-card.is-test > i {
    color: #0369a1;
    background: #e0f2fe;
}

.hp-environment-card.is-live > i {
    color: #b91c1c;
    background: #fee2e2;
}

.hp-domain-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.hp-domain-search-form > span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--hp-border);
    border-radius: 13px;
    background: var(--vz-body-bg, #f8fafc);
}

.hp-domain-search-form > span i {
    color: var(--hp-primary);
    font-size: 1.3rem;
}

.hp-domain-search-form input {
    width: 100%;
    padding: 13px 0;
    border: 0;
    outline: 0;
    color: var(--vz-body-color, var(--hp-ink));
    background: transparent;
    font-size: 1.05rem;
}

.hp-domain-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background: var(--vz-card-bg, var(--hp-surface));
}

.hp-domain-result.is-available {
    border-color: color-mix(in srgb, #16a34a 35%, var(--hp-border));
    box-shadow: inset 4px 0 #16a34a;
}

.hp-domain-result.is-unavailable {
    border-color: color-mix(in srgb, #e11d48 30%, var(--hp-border));
    box-shadow: inset 4px 0 #e11d48;
}

.hp-domain-result-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 16px;
    font-size: 1.7rem;
    color: #166534;
    background: #dcfce7;
}

.hp-domain-result.is-unavailable .hp-domain-result-icon {
    color: #be123c;
    background: #ffe4e6;
}

.hp-domain-result small,
.hp-domain-result h2,
.hp-domain-result p {
    display: block;
    margin: 0;
}

.hp-domain-result h2 {
    margin: 2px 0 4px;
    font-size: 1.3rem;
}

.hp-domain-result p {
    color: var(--hp-muted);
}

.hp-domain-price {
    display: inline-block;
    margin-left: 10px;
}

.hp-operation-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.hp-operation-selector a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    color: inherit;
    border: 1px solid var(--hp-border);
    border-radius: 15px;
    background: var(--vz-card-bg, var(--hp-surface));
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}

.hp-operation-selector a:hover,
.hp-operation-selector a.is-active {
    border-color: color-mix(in srgb, var(--hp-primary) 55%, var(--hp-border));
    transform: translateY(-2px);
}

.hp-operation-selector a.is-active {
    background: color-mix(in srgb, var(--hp-primary) 8%, var(--vz-card-bg, var(--hp-surface)));
}

.hp-operation-selector a > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--hp-primary) 12%, transparent);
    font-size: 1.25rem;
}

.hp-operation-selector span,
.hp-operation-selector strong,
.hp-operation-selector small {
    display: block;
}

.hp-operation-selector small {
    margin-top: 2px;
    color: var(--hp-muted);
}

.hp-compact-steps {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-compact-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hp-compact-steps li > span {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 50%;
    background: color-mix(in srgb, var(--hp-primary) 12%, transparent);
    font-weight: 800;
}

.hp-compact-steps strong,
.hp-compact-steps small {
    display: block;
}

.hp-compact-steps small {
    color: var(--hp-muted);
}

.hp-domain-contact-list {
    display: grid;
    gap: 12px;
}

.hp-domain-contact-list article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--hp-border);
    border-radius: 14px;
}

.hp-domain-contact-list article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 12px;
    background: color-mix(in srgb, var(--hp-primary) 11%, transparent);
    font-size: 1.2rem;
}

.hp-domain-contact-list p,
.hp-domain-contact-list small {
    display: block;
    margin: 3px 0 0;
    color: var(--hp-muted);
}

.hp-domain-contact-list em {
    font-style: normal;
}

.hp-operation-timeline {
    display: grid;
    gap: 0;
}

.hp-operation-timeline article {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    min-height: 64px;
}

.hp-operation-timeline article > span {
    position: relative;
    color: var(--hp-primary);
    text-align: center;
}

.hp-operation-timeline article:not(:last-child) > span::after {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 50%;
    width: 2px;
    content: '';
    background: var(--hp-border);
    transform: translateX(-50%);
}

.hp-operation-timeline strong,
.hp-operation-timeline small,
.hp-operation-timeline em {
    display: block;
}

.hp-operation-timeline small {
    margin-top: 3px;
    color: var(--hp-muted);
}

.hp-operation-timeline em {
    margin-top: 5px;
    color: var(--hp-primary);
    font-size: .75rem;
    font-style: normal;
}

.hp-operation-error {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fef2f2;
}

.hp-operation-error > i {
    font-size: 1.3rem;
}

.hp-operation-error p {
    margin: 3px 0 0;
}

.hp-operation-action-card {
    border-color: color-mix(in srgb, var(--hp-primary) 26%, var(--hp-border));
}

.hp-operation-action-card.is-live {
    border-color: #fca5a5;
}

.hp-json-details summary {
    cursor: pointer;
    color: var(--hp-primary);
    font-weight: 700;
}

.hp-json-details pre {
    max-height: 320px;
    margin: 12px 0 0;
    padding: 14px;
    overflow: auto;
    color: var(--vz-body-color, var(--hp-ink));
    border-radius: 12px;
    background: var(--vz-body-bg, #f8fafc);
    font-size: .76rem;
    white-space: pre-wrap;
    word-break: break-word;
}

[data-bs-theme="dark"] .hp-environment-card {
    background: rgba(15, 23, 42, .55);
}

[data-bs-theme="dark"] .hp-operation-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, .35);
    background: rgba(127, 29, 29, .25);
}

@media (max-width: 767.98px) {
    .hp-domain-hero,
    .hp-domain-result {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hp-environment-card {
        width: 100%;
    }

    .hp-domain-search-form,
    .hp-operation-selector {
        grid-template-columns: 1fr;
    }

    .hp-domain-result-actions .btn {
        width: 100%;
    }

    .hp-domain-contact-list article {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .hp-domain-contact-list article > a {
        grid-column: 1 / -1;
    }
}

@media print {
    .hp-sidebar,
    .hp-topbar,
    .footer,
    .hp-no-print {
        display: none !important;
    }

    body:not(.hp-auth-page) .main-content {
        margin: 0 !important;
    }

    body:not(.hp-auth-page) .page-content {
        padding: 0 !important;
        background: #fff !important;
    }

    .hp-invoice-document {
        border: 0 !important;
        box-shadow: none !important;
    }

    .hp-invoice-document .card-body {
        padding: 16px !important;
    }
}

/* Phase 8A: separate light/dark brand assets while preserving user theme choice. */
.hp-brand-logo-dark { display: none !important; }
[data-bs-theme="dark"] .hp-brand-logo-light { display: none !important; }
[data-bs-theme="dark"] .hp-brand-logo-dark { display: block !important; }

/* Phase 8B: security and audit center. */
.hp-security-lock {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    color: var(--hp-primary);
    border: 1px solid color-mix(in srgb, var(--hp-primary) 20%, var(--hp-border));
    border-radius: 14px;
    background: color-mix(in srgb, var(--hp-primary) 7%, var(--vz-card-bg, #fff));
}

.hp-security-lock > i { font-size: 1.35rem; }
.hp-security-lock strong,
.hp-security-lock small { display: block; }
.hp-security-lock small { color: var(--hp-muted); }

.hp-security-event {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 220px;
}

.hp-security-event > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--hp-primary);
    border-radius: 11px;
    background: color-mix(in srgb, var(--hp-primary) 10%, transparent);
    font-size: 1.05rem;
}

.hp-security-event strong,
.hp-security-event small { display: block; }
.hp-security-event small {
    margin-top: 2px;
    color: var(--hp-muted);
    font-family: var(--bs-font-monospace);
    font-size: .72rem;
}

.hp-security-summary {
    display: flex;
    gap: 12px;
    align-items: center;
}

.hp-security-summary > span {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #b45309;
    border-radius: 13px;
    background: rgba(245, 158, 11, .13);
    font-size: 1.2rem;
}

.hp-security-summary strong,
.hp-security-summary small { display: block; }
.hp-security-summary small { margin-top: 2px; color: var(--hp-muted); }
.hp-security-summary > a { margin-left: auto; font-weight: 700; }

.hp-security-session-mini { display: grid; gap: 12px; }
.hp-security-session-mini > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.hp-security-session-mini strong,
.hp-security-session-mini small { display: block; }
.hp-security-session-mini small,
.hp-security-session-mini time { color: var(--hp-muted); font-size: .75rem; }
.hp-session-current > td { background: color-mix(in srgb, var(--hp-primary) 5%, transparent); }

.hp-security-json {
    max-height: 520px;
    margin: 0;
    padding: 18px;
    overflow: auto;
    color: var(--vz-body-color, var(--hp-ink));
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    background: var(--vz-body-bg, #f8fafc);
    font-size: .8rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .hp-security-lock { width: 100%; }
    .hp-security-session-mini > div { grid-template-columns: auto minmax(0, 1fr); }
    .hp-security-session-mini time { grid-column: 2; }
}

/* Admin customer center. */
.hp-customer-center-hero {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    background:
        radial-gradient(circle at 90% 0, color-mix(in srgb, var(--hp-primary) 13%, transparent), transparent 38%),
        var(--hp-card-bg);
}

.hp-customer-center-identity {
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 0;
}

.hp-customer-center-avatar {
    display: grid;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #fff;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-cyan));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--hp-primary) 25%, transparent);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.hp-customer-center-tabs {
    margin-bottom: 0;
}

.hp-customer-facts {
    display: grid;
    gap: 0;
}

.hp-customer-facts > div {
    display: grid;
    grid-template-columns: minmax(110px, .85fr) minmax(0, 1.15fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hp-border);
}

.hp-customer-facts > div:last-child {
    border-bottom: 0;
}

.hp-customer-facts dt {
    color: var(--hp-muted);
    font-size: .78rem;
    font-weight: 700;
}

.hp-customer-facts dd {
    margin: 0;
    color: var(--hp-ink);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.hp-customer-balance {
    display: grid;
    gap: 7px;
    padding: 15px 16px;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, .24);
    border-radius: 14px;
    background: rgba(245, 158, 11, .1);
}

.hp-customer-balance span {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hp-customer-balance strong {
    font-size: 1.05rem;
}

[data-bs-theme="dark"] .hp-customer-balance {
    color: #fde68a;
}

.hp-expiry-window {
    display: inline-flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    background: var(--hp-soft-bg);
}

.hp-expiry-window a {
    padding: 7px 10px;
    color: var(--hp-muted);
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 750;
    white-space: nowrap;
}

.hp-expiry-window a:hover,
.hp-expiry-window a.is-active {
    color: #fff;
    background: var(--hp-primary);
}

.hp-customer-activity,
.hp-customer-transfer-history {
    display: grid;
    gap: 4px;
}

.hp-customer-activity > a,
.hp-customer-transfer-history > a {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 12px;
    color: var(--hp-ink);
    border: 1px solid transparent;
    border-radius: 12px;
}

.hp-customer-activity > a:hover,
.hp-customer-transfer-history > a:hover {
    color: var(--hp-ink);
    border-color: color-mix(in srgb, var(--hp-primary) 22%, var(--hp-border));
    background: color-mix(in srgb, var(--hp-primary) 6%, var(--hp-card-bg));
}

.hp-customer-activity > a > span,
.hp-customer-transfer-history > a > span {
    min-width: 0;
}

.hp-customer-activity strong,
.hp-customer-activity small,
.hp-customer-transfer-history strong,
.hp-customer-transfer-history small {
    display: block;
}

.hp-customer-activity strong,
.hp-customer-transfer-history strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-customer-activity small,
.hp-customer-transfer-history small {
    margin-top: 3px;
    color: var(--hp-muted);
    font-size: .74rem;
}

.hp-customer-activity em,
.hp-customer-transfer-history em {
    flex: 0 0 auto;
    font-style: normal;
}

@media (max-width: 767.98px) {
    .hp-customer-center-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .hp-customer-center-hero > .d-flex {
        align-items: stretch !important;
    }

    .hp-customer-center-hero .btn {
        flex: 1 1 auto;
    }

    .hp-customer-center-tabs,
    .hp-expiry-window {
        width: 100%;
        overflow-x: auto;
    }

    .hp-customer-facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hp-customer-facts dd {
        text-align: left;
    }

    .hp-customer-activity > a,
    .hp-customer-transfer-history > a {
        align-items: flex-start;
        flex-direction: column;
    }
}
.hp-customer-preview-banner{position:sticky;top:76px;z-index:1015;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px;background:#9a3412;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.hp-customer-preview-banner>div{display:flex;align-items:center;gap:10px}.hp-customer-preview-banner i{font-size:1.1rem}.hp-customer-preview-banner form{margin:0}
html[data-customer-preview="true"] form[method="post"]:not(.hp-view-as-control) button[type="submit"]{cursor:not-allowed;opacity:.55;pointer-events:none}
@media(max-width:767.98px){.hp-customer-preview-banner{top:70px;padding:10px 16px;align-items:flex-start;flex-direction:column}.hp-customer-preview-banner .btn{width:100%}}
.hp-risk-score{display:inline-grid;place-items:center;min-width:48px;height:48px;padding:0 8px;border-radius:14px;background:rgba(239,68,68,.12);color:#fb7185;font-size:1.1rem;font-weight:800}
.hp-customer-timeline{display:flex;flex-direction:column}.hp-customer-timeline-item{position:relative;display:grid;grid-template-columns:42px 1fr;gap:14px;padding:0 0 26px}.hp-customer-timeline-item:not(:last-child):before{content:"";position:absolute;left:20px;top:40px;bottom:2px;width:2px;background:var(--hp-border-color,#243249)}.hp-customer-timeline-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(14,165,233,.12);color:#38bdf8;font-size:1.1rem}.hp-customer-timeline-item.is-priority .hp-customer-timeline-icon{background:rgba(245,158,11,.14);color:#fbbf24}.hp-customer-timeline-item p{margin:7px 0 3px;color:var(--hp-text-muted,#94a3b8);white-space:normal}.hp-customer-timeline-item small,.hp-customer-note small{color:var(--hp-text-muted,#94a3b8)}.hp-customer-notes{display:flex;flex-direction:column;gap:12px}.hp-customer-note{padding:14px;border:1px solid var(--hp-border-color,#243249);border-radius:14px}.hp-customer-note.is-priority{border-color:rgba(245,158,11,.55);background:rgba(245,158,11,.06)}.hp-customer-note>div{display:flex;flex-direction:column;gap:2px}.hp-customer-note p{margin:10px 0;white-space:normal}
.hp-admin-permission{display:flex;gap:12px;align-items:flex-start;height:100%;padding:15px;border:1px solid var(--hp-border-color,#243249);border-radius:14px;cursor:pointer;transition:border-color .2s,background .2s}.hp-admin-permission:has(input:checked){border-color:#3b82f6;background:rgba(59,130,246,.08)}.hp-admin-permission>span{display:grid;grid-template-columns:24px 1fr;gap:2px 8px}.hp-admin-permission i{grid-row:1/3;color:#38bdf8;font-size:1.15rem}.hp-admin-permission strong{line-height:1.3}.hp-admin-permission small{color:var(--hp-text-muted,#94a3b8);line-height:1.45}
