:root {
    --bs-primary: #475569;
    --bs-primary-rgb: 71, 85, 105;
    --bs-primary-subtle: #f1f5f9;
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --bs-body-color: var(--text-primary, #334155);
    --bs-body-bg: #f8fafc;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --bs-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
}

.help-home-hero {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    padding: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0, rgba(16, 185, 129, 0) 22%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #eef6f2 100%);
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

.help-home-hero__body {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.help-home-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.78rem;
    border-radius: var(--radius-2026-btn, 14px);
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.help-home-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.help-home-subtitle {
    margin: 0.75rem 0 0;
    max-width: 720px;
    color: #64748b;
    line-height: 1.65;
}

.help-home-search {
    max-width: 960px;
}

.help-home-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.help-home-stat,
.help-home-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-2026-btn, 14px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold,
.fw-semibold {
    font-weight: 600 !important;
    color: var(--text-primary, #1e293b);
}

#helpSearchInput {
    background-color: #fff;
    border-right: 0;
}

#helpSearchInput:focus {
    box-shadow: 0 0 0 3px var(--bs-primary-subtle);
    border-color: var(--bs-primary);
    background-color: #fff;
}

.input-group-lg .btn {
    font-weight: 500;
}

.input-group-lg {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    box-shadow: var(--bs-shadow-sm);
}

.help-article-card-modern {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--bs-border-radius-lg);
    border: 0;
    box-shadow: var(--bs-shadow-sm);
}

.help-article-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-shadow) !important;
}

.cat-card-neutral {
    background-color: #fff !important;
}

.cat-icon-neutral {
    color: var(--bs-primary);
}

.list-group-flush {
    border-radius: var(--bs-border-radius-lg);
    overflow: hidden;
}

.help-home-list {
    border-radius: 22px;
}

.list-group-item-action {
    transition: background-color 0.15s ease;
}

.list-group-item-action:hover {
    background-color: #fff;
}

.sticky-aside {
    position: -webkit-sticky;
    position: sticky;
    top: 2rem;
}

.assistant-card,
.contact-card {
    background-color: #fff;
    border: 0;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-shadow-sm);
}

.assistant-card-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

@media (max-width: 575.98px) {
    .help-home-category-grid {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        display: grid;
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .help-home-category-grid > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .help-home-hero {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .help-home-hero__body {
        flex-direction: column;
    }

    .help-home-stat-strip {
        justify-content: flex-start;
    }
}

#hc-chat {
    background-color: var(--bs-body-bg) !important;
}

#assistantQuestion {
    background-color: var(--bs-body-bg) !important;
    border: 0;
}

#assistantQuestion:focus {
    background-color: #fff !important;
    box-shadow: none;
    border: 1px solid var(--bs-primary-subtle);
}

/* Production polish */
:root {
    --bs-border-radius: 0.5rem;
    --bs-border-radius-lg: 0.5rem;
}

.help-home-hero,
.help-home-kicker,
.help-home-stat,
.help-home-inline-badge,
.help-home-list,
.assistant-card,
.contact-card,
.help-article-card-modern {
    border-radius: 8px !important;
}

.help-home-hero,
.assistant-card-gradient {
    background: #ffffff;
}

.help-home-kicker,
.help-home-title {
    letter-spacing: 0;
}

/* Pastel production pass: help center home */
#helpCenterHomePage {
    --hc-ink: #172033;
    --hc-muted: #5f6f84;
    --hc-sky: #e8f4ff;
    --hc-sky-border: #b9dcf6;
    --hc-sky-text: #1e4f79;
    --hc-mint: #eaf8f1;
    --hc-mint-border: #bce5cc;
    --hc-mint-text: #1f6f4b;
    --hc-amber: #fff3d6;
    --hc-amber-text: #7a5618;
    color: var(--hc-ink);
}

#helpCenterHomePage .help-home-hero,
#helpCenterHomePage .assistant-card-gradient {
    background: linear-gradient(135deg, var(--hc-sky), var(--hc-mint), var(--hc-amber));
    border: 1px solid rgba(153, 189, 216, 0.42);
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.06);
}

#helpCenterHomePage .help-home-kicker,
#helpCenterHomePage .help-home-stat,
#helpCenterHomePage .help-home-inline-badge {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(153, 189, 216, 0.42);
    color: var(--hc-sky-text);
}

#helpCenterHomePage .help-article-card-modern,
#helpCenterHomePage .help-home-list,
#helpCenterHomePage .assistant-card,
#helpCenterHomePage .contact-card {
    border: 1px solid rgba(153, 189, 216, 0.28) !important;
    box-shadow: 0 14px 30px rgba(23, 32, 51, 0.06) !important;
}

#helpCenterHomePage .btn-primary,
#helpCenterHomePage .btn-success {
    background: var(--hc-sky) !important;
    border-color: var(--hc-sky-border) !important;
    color: var(--hc-sky-text) !important;
    box-shadow: none !important;
}

#helpCenterHomePage .btn-success {
    background: var(--hc-mint) !important;
    border-color: var(--hc-mint-border) !important;
    color: var(--hc-mint-text) !important;
}

#helpCenterHomePage .btn-primary:hover,
#helpCenterHomePage .btn-primary:focus-visible {
    background: #d7ecfd !important;
    border-color: #9dcced !important;
    color: #163f61 !important;
}

#helpCenterHomePage .btn-success:hover,
#helpCenterHomePage .btn-success:focus-visible {
    background: #d8f1e4 !important;
    border-color: #9ed9b8 !important;
    color: #18583b !important;
}

#helpCenterHomePage .text-primary,
#helpCenterHomePage .cat-icon-neutral {
    color: var(--hc-sky-text) !important;
}

#helpCenterHomePage .text-success {
    color: var(--hc-mint-text) !important;
}

#helpCenterHomePage .text-muted,
#helpCenterHomePage .text-secondary {
    color: var(--hc-muted) !important;
}
