/* Help Chat Widget Styles - Modern Design System */

/* ============================================
   Design System Variables
   ============================================ */
:root {
    /* Colors - Primary Brand */
    --help-primary: #e08880;
    --help-primary-dark: #7a3028;
    --help-primary-light: #edb0aa;
    --help-primary-gradient: #e08880;

    /* Colors - Semantic */
    --help-success: #28a745;
    --help-danger: #dc3545;
    --help-warning: #ffc107;
    --help-info: #17a2b8;

    /* Colors - Neutral Palette */
    --help-white: #ffffff;
    --help-gray-50: #f8f9fa;
    --help-gray-100: #e9ecef;
    --help-gray-200: #dee2e6;
    --help-gray-300: #ced4da;
    --help-gray-400: #adb5bd;
    --help-gray-500: #6c757d;
    --help-gray-600: #495057;
    --help-gray-700: #343a40;
    --help-gray-800: #212529;
    --help-gray-900: #1a1d20;

    /* Colors - Text */
    --help-text-primary: #212529;
    --help-text-secondary: #495057;
    --help-text-muted: #6c757d;
    --help-text-light: #ffffff;

    /* Colors - Backgrounds */
    --help-bg-primary: #ffffff;
    --help-bg-secondary: #f8f9fa;
    --help-bg-tertiary: #e9ecef;

    /* Spacing System (4px base unit) */
    --help-spacing-xs: 4px;
    --help-spacing-sm: 8px;
    --help-spacing-md: 12px;
    --help-spacing-lg: 16px;
    --help-spacing-xl: 20px;
    --help-spacing-2xl: 24px;
    --help-spacing-3xl: 32px;
    --help-spacing-4xl: 40px;
    --help-spacing-5xl: 48px;

    /* Border Radius */
    --help-radius-sm: 4px;
    --help-radius-md: 8px;
    --help-radius-lg: 12px;
    --help-radius-xl: 16px;
    --help-radius-full: 50%;

    /* Shadows removed — flat UI */
    --help-shadow-xs: none;
    --help-shadow-sm: none;
    --help-shadow-md: none;
    --help-shadow-lg: none;
    --help-shadow-xl: none;
    --help-shadow-2xl: none;

    /* Typography */
    --help-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --help-font-size-xs: 11px;
    --help-font-size-sm: 12px;
    --help-font-size-base: 14px;
    --help-font-size-md: 16px;
    --help-font-size-lg: 18px;
    --help-font-size-xl: 20px;
    --help-font-size-2xl: 24px;

    --help-font-weight-normal: 400;
    --help-font-weight-medium: 500;
    --help-font-weight-semibold: 600;
    --help-font-weight-bold: 700;

    --help-line-height-tight: 1.25;
    --help-line-height-normal: 1.5;
    --help-line-height-relaxed: 1.6;

    /* Transitions */
    --help-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --help-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --help-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --help-z-backdrop: 9998;
    --help-z-panel: 9999;
}

/* ============================================
   Base Widget Styles
   ============================================ */
.help-chat-widget {
    position: fixed;
    bottom: var(--help-spacing-2xl);
    right: var(--help-spacing-2xl);
    z-index: var(--help-z-panel);
    font-family: var(--help-font-family);
}

/* ============================================
   Floating Toggle Button
   ============================================ */
.help-chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: var(--help-radius-full);
    background: var(--help-primary-gradient);
    border: none;
    color: var(--help-text-light);
    font-size: var(--help-font-size-2xl);
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--help-transition-slow);
    will-change: transform;
}

.help-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: none;
}

.help-chat-toggle:active {
    transform: scale(0.95);
}

.help-chat-toggle:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
}

.help-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--help-danger);
    color: var(--help-text-light);
    font-size: var(--help-font-size-xs);
    font-weight: var(--help-font-weight-semibold);
    padding: 2px var(--help-spacing-sm);
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    box-shadow: none;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* ============================================
   Chat Panel
   ============================================ */
.help-chat-panel {
    position: fixed;
    bottom: var(--help-spacing-2xl);
    right: var(--help-spacing-2xl);
    width: 440px;
    max-width: calc(100vw - 48px);
    height: calc(100vh - 48px);
    max-height: calc(100vh - 48px);
    background: var(--help-bg-primary);
    border-radius: var(--help-radius-lg);
    box-shadow: none;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp var(--help-transition-slow);
    z-index: var(--help-z-panel);
    will-change: transform, opacity;
}

.help-chat-panel:not([hidden]) {
    display: flex !important;
}

.help-chat-panel[hidden] {
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================
   Header
   ============================================ */
.help-chat-header {
    padding: var(--help-spacing-lg) var(--help-spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--help-primary-gradient);
    color: var(--help-text-light);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.help-chat-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.help-chat-header-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.help-chat-title {
    margin: 0 0 var(--help-spacing-xs) 0;
    font-size: var(--help-font-size-lg);
    font-weight: var(--help-font-weight-semibold);
    display: flex;
    align-items: center;
    gap: var(--help-spacing-sm);
    line-height: var(--help-line-height-tight);
}

.help-chat-title i {
    font-size: var(--help-font-size-xl);
}

.help-chat-subtitle {
    margin: 0;
    font-size: var(--help-font-size-sm);
    opacity: 0.9;
    font-weight: var(--help-font-weight-normal);
    line-height: var(--help-line-height-normal);
}

.help-chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--help-text-light);
    font-size: var(--help-font-size-xl);
    cursor: pointer;
    padding: var(--help-spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--help-radius-sm);
    transition: all var(--help-transition-base);
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.help-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.help-chat-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ============================================
   Body
   ============================================ */
.help-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.help-chat-body:not(.is-detail-view) {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--help-gray-300) transparent;
}

.help-chat-body:not(.is-detail-view)::-webkit-scrollbar {
    width: 6px;
}

.help-chat-body:not(.is-detail-view)::-webkit-scrollbar-track {
    background: transparent;
}

.help-chat-body:not(.is-detail-view)::-webkit-scrollbar-thumb {
    background: var(--help-gray-300);
    border-radius: var(--help-radius-full);
}

.help-chat-body:not(.is-detail-view)::-webkit-scrollbar-thumb:hover {
    background: var(--help-gray-400);
}

.help-chat-body.is-detail-view {
    overflow: hidden;
}

/* ============================================
   Search
   ============================================ */
.help-chat-search {
    padding: var(--help-spacing-lg);
    border-bottom: 1px solid var(--help-gray-100);
    background: var(--help-bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.help-chat-search[hidden] {
    display: none !important;
}

.help-chat-search-wrapper {
    position: relative;
}

.help-chat-search .input-group {
    box-shadow: none;
    border-radius: var(--help-radius-md);
    overflow: hidden;
    background: var(--help-bg-primary);
    transition: box-shadow var(--help-transition-base);
}

.help-chat-search .input-group:focus-within {
    box-shadow: none;
}

.help-chat-search .input-group-text {
    background: var(--help-bg-primary);
    border: none;
    color: var(--help-text-muted);
    padding: var(--help-spacing-md);
}

.help-chat-search .form-control {
    border: none;
    padding: var(--help-spacing-md);
    font-size: var(--help-font-size-base);
    color: var(--help-text-primary);
    background: var(--help-bg-primary);
}

.help-chat-search .form-control::placeholder {
    color: var(--help-text-muted);
    opacity: 0.7;
}

.help-chat-search .form-control:focus {
    border: none;
    box-shadow: none;
    background: var(--help-bg-primary);
}

.help-chat-search-clear {
    background: transparent;
    border: none;
    color: var(--help-text-muted);
    padding: var(--help-spacing-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--help-transition-base);
    border-radius: var(--help-radius-sm);
}

.help-chat-search-clear:hover {
    background: var(--help-gray-100);
    color: var(--help-text-primary);
}

.help-chat-search-results-count {
    margin-top: var(--help-spacing-sm);
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
    display: flex;
    align-items: center;
    gap: var(--help-spacing-xs);
}

/* ============================================
   Loading States
   ============================================ */
.help-chat-loading {
    padding: var(--help-spacing-3xl) var(--help-spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.help-chat-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--help-gray-100);
    border-top-color: var(--help-primary);
    border-radius: var(--help-radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.help-chat-loading-text {
    margin-top: var(--help-spacing-lg);
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
}

/* Skeleton Screens */
.help-chat-skeleton {
    background: var(--help-gray-100);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--help-radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.help-chat-skeleton-item {
    height: 60px;
    margin-bottom: var(--help-spacing-sm);
}

.help-chat-skeleton-title {
    height: 16px;
    width: 60%;
    margin-bottom: var(--help-spacing-xs);
}

.help-chat-skeleton-text {
    height: 12px;
    width: 100%;
}

/* ============================================
   Content Area
   ============================================ */
.help-chat-content {
    flex: 1 1 auto;
    padding: var(--help-spacing-lg);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    height: 100%;
}

.help-chat-section {
    margin-bottom: var(--help-spacing-2xl);
}

.help-chat-section:last-child {
    margin-bottom: 0;
}

.help-chat-section-title {
    font-size: var(--help-font-size-base);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
    margin-bottom: var(--help-spacing-md);
    display: flex;
    align-items: center;
    gap: var(--help-spacing-sm);
}

.help-chat-section-title i {
    color: var(--help-primary);
    font-size: var(--help-font-size-md);
}

/* ============================================
   Topics List
   ============================================ */
.help-chat-topics {
    display: flex;
    flex-direction: column;
    gap: var(--help-spacing-sm);
}

.help-chat-topic-item {
    width: 100%;
    padding: var(--help-spacing-md) var(--help-spacing-lg);
    background: var(--help-bg-primary);
    border: 1px solid var(--help-gray-100);
    border-radius: var(--help-radius-md);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--help-transition-base);
    position: relative;
    overflow: hidden;
}

.help-chat-topic-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--help-primary);
    transform: scaleY(0);
    transition: transform var(--help-transition-base);
}

.help-chat-topic-item:hover {
    background: var(--help-bg-secondary);
    border-color: var(--help-primary);
    box-shadow: none;
    transform: translateX(4px);
}

.help-chat-topic-item:hover::before {
    transform: scaleY(1);
}

.help-chat-topic-item:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
}

.help-chat-topic-item.is-contextual {
    background: rgba(249, 115, 98, 0.05);
    border-color: rgba(249, 115, 98, 0.3);
}

.help-chat-topic-item.is-contextual:hover {
    background: rgba(249, 115, 98, 0.1);
    border-color: var(--help-primary);
}

.help-chat-topic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--help-spacing-xs);
    min-width: 0;
}

.help-chat-topic-title {
    font-size: var(--help-font-size-base);
    font-weight: var(--help-font-weight-medium);
    color: var(--help-text-primary);
    line-height: var(--help-line-height-normal);
}

.help-chat-topic-category {
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
    display: flex;
    align-items: center;
    gap: var(--help-spacing-xs);
}

.help-chat-topic-item i {
    color: var(--help-text-muted);
    font-size: var(--help-font-size-md);
    transition: transform var(--help-transition-base);
    flex-shrink: 0;
}

.help-chat-topic-item:hover i {
    transform: translateX(2px);
    color: var(--help-primary);
}

.help-chat-topic-favorite {
    background: transparent;
    border: none;
    color: var(--help-text-muted);
    padding: var(--help-spacing-xs);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--help-transition-base);
    border-radius: var(--help-radius-sm);
    margin-right: var(--help-spacing-xs);
    opacity: 0;
}

.help-chat-topic-item:hover .help-chat-topic-favorite {
    opacity: 1;
}

.help-chat-topic-favorite:hover {
    color: var(--help-warning);
    transform: scale(1.1);
}

.help-chat-topic-favorite.is-favorite {
    opacity: 1;
    color: var(--help-warning);
}

/* ============================================
   Categories
   ============================================ */
.help-chat-categories {
    display: flex;
    flex-direction: column;
    gap: var(--help-spacing-sm);
}

.help-chat-category {
    border: 1px solid var(--help-gray-100);
    border-radius: var(--help-radius-md);
    overflow: hidden;
    background: var(--help-bg-primary);
    box-shadow: none;
    transition: all var(--help-transition-base);
}

.help-chat-category:hover {
    box-shadow: none;
}

.help-chat-category-header {
    width: 100%;
    padding: var(--help-spacing-md) var(--help-spacing-lg);
    background: var(--help-bg-primary);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--help-font-size-base);
    font-weight: var(--help-font-weight-medium);
    color: var(--help-text-primary);
    transition: all var(--help-transition-base);
    gap: var(--help-spacing-sm);
}

.help-chat-category-header:hover {
    background: var(--help-bg-secondary);
}

.help-chat-category-header:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: -2px;
}

.help-chat-category-header.is-expanded {
    background: var(--help-bg-secondary);
}

.help-chat-category-header.is-expanded i {
    transform: rotate(180deg);
}

.help-chat-category-header i {
    transition: transform var(--help-transition-base);
    color: var(--help-text-muted);
    font-size: var(--help-font-size-sm);
}

.help-chat-category-icon {
    color: var(--help-primary);
    font-size: var(--help-font-size-md);
}

.help-chat-category-count {
    margin-left: auto;
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
    background: var(--help-gray-100);
    padding: 2px var(--help-spacing-sm);
    border-radius: 12px;
    font-weight: var(--help-font-weight-medium);
}

.help-chat-category-topics {
    border-top: 1px solid var(--help-gray-100);
    padding: var(--help-spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--help-spacing-xs);
    background: var(--help-bg-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--help-transition-slow), padding var(--help-transition-slow);
}

.help-chat-category-topics:not([hidden]) {
    max-height: 2000px;
    padding: var(--help-spacing-sm);
}

.help-chat-category-topics .help-chat-topic-item {
    border: none;
    padding: var(--help-spacing-md) var(--help-spacing-md);
    background: var(--help-bg-primary);
    box-shadow: none;
}

.help-chat-category-topics .help-chat-topic-item:hover {
    background: var(--help-gray-50);
    transform: translateX(2px);
}

/* ============================================
   Detail View
   ============================================ */
.help-chat-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--help-bg-primary);
}

.help-chat-detail[hidden] {
    display: none !important;
}

.help-chat-detail-header {
    padding: var(--help-spacing-lg);
    border-bottom: 1px solid var(--help-gray-100);
    background: var(--help-bg-secondary);
    display: flex;
    align-items: center;
    gap: var(--help-spacing-md);
    flex-shrink: 0;
}

.help-chat-detail-back {
    background: transparent;
    border: 1px solid var(--help-gray-200);
    color: var(--help-text-primary);
    padding: var(--help-spacing-sm) var(--help-spacing-md);
    border-radius: var(--help-radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--help-spacing-xs);
    font-size: var(--help-font-size-sm);
    font-weight: var(--help-font-weight-medium);
    transition: all var(--help-transition-base);
}

.help-chat-detail-back:hover {
    background: var(--help-bg-primary);
    border-color: var(--help-primary);
    color: var(--help-primary);
    transform: translateX(-2px);
}

.help-chat-detail-back:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
}

.help-chat-detail-breadcrumb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--help-spacing-xs);
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
    overflow: hidden;
}

.help-chat-detail-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--help-spacing-xs);
    white-space: nowrap;
}

.help-chat-detail-breadcrumb-separator {
    color: var(--help-gray-300);
}

.help-chat-detail-content {
    padding: var(--help-spacing-xl);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--help-gray-300) transparent;
}

.help-chat-detail-content::-webkit-scrollbar {
    width: 6px;
}

.help-chat-detail-content::-webkit-scrollbar-track {
    background: transparent;
}

.help-chat-detail-content::-webkit-scrollbar-thumb {
    background: var(--help-gray-300);
    border-radius: var(--help-radius-full);
}

.help-chat-detail-content::-webkit-scrollbar-thumb:hover {
    background: var(--help-gray-400);
}

.help-chat-detail-title {
    font-size: var(--help-font-size-xl);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
    margin-bottom: var(--help-spacing-lg);
    line-height: var(--help-line-height-tight);
}

.help-chat-detail-body {
    color: var(--help-text-secondary);
    line-height: var(--help-line-height-relaxed);
    font-size: var(--help-font-size-base);
}

.help-chat-detail-body h1,
.help-chat-detail-body h2,
.help-chat-detail-body h3,
.help-chat-detail-body h4,
.help-chat-detail-body h5,
.help-chat-detail-body h6 {
    margin-top: var(--help-spacing-2xl);
    margin-bottom: var(--help-spacing-md);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
    line-height: var(--help-line-height-tight);
}

.help-chat-detail-body h1 {
    font-size: var(--help-font-size-2xl);
    margin-top: 0;
}

.help-chat-detail-body h2 {
    font-size: var(--help-font-size-xl);
}

.help-chat-detail-body h3 {
    font-size: var(--help-font-size-lg);
}

.help-chat-detail-body h4 {
    font-size: var(--help-font-size-md);
}

.help-chat-detail-body p {
    margin-bottom: var(--help-spacing-md);
}

.help-chat-detail-body ul,
.help-chat-detail-body ol {
    margin-bottom: var(--help-spacing-md);
    padding-left: var(--help-spacing-2xl);
}

.help-chat-detail-body li {
    margin-bottom: var(--help-spacing-sm);
}

.help-chat-detail-body code {
    background: var(--help-bg-secondary);
    padding: 2px var(--help-spacing-sm);
    border-radius: var(--help-radius-sm);
    font-size: 0.9em;
    color: #e83e8c;
    font-family: 'Courier New', monospace;
}

.help-chat-detail-body pre {
    background: var(--help-bg-secondary);
    padding: var(--help-spacing-md);
    border-radius: var(--help-radius-md);
    overflow-x: auto;
    margin-bottom: var(--help-spacing-md);
    border: 1px solid var(--help-gray-100);
}

.help-chat-detail-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.help-chat-detail-body blockquote {
    border-left: 4px solid var(--help-primary);
    padding-left: var(--help-spacing-lg);
    margin: var(--help-spacing-lg) 0;
    color: var(--help-text-muted);
    font-style: italic;
    background: var(--help-bg-secondary);
    padding: var(--help-spacing-md) var(--help-spacing-lg);
    border-radius: var(--help-radius-sm);
}

.help-chat-detail-body a {
    color: var(--help-primary);
    text-decoration: none;
    font-weight: var(--help-font-weight-medium);
    border-bottom: 1px solid transparent;
    transition: all var(--help-transition-base);
}

.help-chat-detail-body a:hover {
    border-bottom-color: var(--help-primary);
}

.help-chat-detail-body mark {
    background: rgba(249, 115, 98, 0.2);
    color: var(--help-text-primary);
    padding: 2px 4px;
    border-radius: var(--help-radius-sm);
    font-weight: var(--help-font-weight-medium);
}

.help-chat-topic-title mark {
    background: rgba(249, 115, 98, 0.2);
    color: var(--help-text-primary);
    padding: 1px 3px;
    border-radius: var(--help-radius-sm);
    font-weight: var(--help-font-weight-semibold);
}

.help-chat-detail-related {
    margin-top: var(--help-spacing-2xl);
    padding-top: var(--help-spacing-lg);
    border-top: 1px solid var(--help-gray-100);
}

.help-chat-detail-related-title {
    font-size: var(--help-font-size-base);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
    margin-bottom: var(--help-spacing-md);
}

/* ============================================
   Contact Section
   ============================================ */
.help-chat-contact {
    margin-bottom: var(--help-spacing-2xl);
}

.help-chat-contact-options {
    display: flex;
    flex-direction: column;
    gap: var(--help-spacing-sm);
}

.help-chat-contact-item {
    display: flex;
    align-items: center;
    gap: var(--help-spacing-md);
    padding: var(--help-spacing-md) var(--help-spacing-lg);
    border: 1px solid var(--help-gray-100);
    border-radius: var(--help-radius-md);
    background: var(--help-bg-primary);
    text-decoration: none;
    color: var(--help-text-primary);
    transition: all var(--help-transition-base);
    box-shadow: none;
}

.help-chat-contact-item:hover {
    background: var(--help-bg-secondary);
    border-color: var(--help-primary);
    box-shadow: none;
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--help-text-primary);
}

.help-chat-contact-item:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
}

.help-chat-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--help-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.help-chat-contact-whatsapp .help-chat-contact-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.help-chat-contact-email .help-chat-contact-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.help-chat-contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.help-chat-contact-title {
    font-size: var(--help-font-size-base);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
}

.help-chat-contact-description {
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
}

.help-chat-contact-arrow {
    color: var(--help-text-muted);
    font-size: var(--help-font-size-sm);
    flex-shrink: 0;
    transition: transform var(--help-transition-base);
}

.help-chat-contact-item:hover .help-chat-contact-arrow {
    transform: translate(2px, -2px);
}

/* ============================================
   Empty States
   ============================================ */
.help-chat-empty {
    padding: var(--help-spacing-3xl) var(--help-spacing-lg);
    text-align: center;
    color: var(--help-text-muted);
}

.help-chat-empty-icon {
    font-size: 48px;
    color: var(--help-gray-300);
    margin-bottom: var(--help-spacing-lg);
}

.help-chat-empty-title {
    font-size: var(--help-font-size-lg);
    font-weight: var(--help-font-weight-semibold);
    color: var(--help-text-primary);
    margin-bottom: var(--help-spacing-sm);
}

.help-chat-empty-text {
    font-size: var(--help-font-size-sm);
    color: var(--help-text-muted);
}

/* ============================================
   Backdrop
   ============================================ */
.help-chat-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: var(--help-z-backdrop);
    animation: fadeIn var(--help-transition-base);
    pointer-events: auto;
    display: none;
}

.help-chat-backdrop:not([hidden]) {
    display: block !important;
}

.help-chat-backdrop[hidden] {
    display: none !important;
    pointer-events: none;
    visibility: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   Body Lock
   ============================================ */
body.help-chat-open {
    overflow: hidden;
}

/* ============================================
   Focus Styles for Accessibility
   ============================================ */
.help-chat-topic-item:focus-visible,
.help-chat-category-header:focus-visible,
.help-chat-detail-back:focus-visible,
.help-chat-search-clear:focus-visible,
.help-chat-topic-favorite:focus-visible {
    outline: 2px solid var(--help-primary);
    outline-offset: 2px;
    z-index: 1;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .help-chat-widget {
        display: none !important;
    }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    .help-chat-widget {
        display: none !important;
    }
}