/**
 * Trev Help System Styles
 * Floating widget, help center, and support ticket styles
 * All classes prefixed with 'help-' to avoid conflicts
 * Version: 2.1.0 - Updated layout with improved article view
 */

/* ========================================
   Floating Help Widget
   ======================================== */

/* Main help button */
.help-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.help-widget-button {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #14B8A6;
    border: none;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.help-widget-button:hover {
    background: #0D9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* Help widget button text icon */
.help-icon-text {
    font-size: 32px;
    font-weight: 700;
    color: white;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Pulse animation for attention */
.help-widget-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #14B8A6;
    opacity: 0;
    animation: helpPulse 3s ease-out infinite;
}

@keyframes helpPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Stop animation on hover */
.help-widget-button:hover::after {
    animation: none;
}

/* Help panel */
.help-widget-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 380px;
    max-height: 600px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

.help-widget-panel.active {
    display: flex;
}

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

/* Panel header */
.help-panel-header {
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.help-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 12px 0;
}

/* Search box */
.help-search-box {
    position: relative;
}

.help-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    background: #F8FAFC;
    transition: all 0.2s;
}

.help-search-input:focus {
    outline: none;
    border-color: #14B8A6;
    background: #FFFFFF;
}

.help-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94A3B8;
}

/* Panel body */
.help-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Quick links */
.help-quick-links {
    margin-bottom: 24px;
}

.help-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Widget category grid */
.help-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Special styling for Help Center main link */
.help-category-btn.help-center-main {
    grid-column: 1 / -1;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
}

.help-category-btn.help-center-main .help-category-icon {
    margin-bottom: 0;
}

.help-category-btn {
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.help-category-btn:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

.help-category-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    color: #14B8A6;
}

.help-category-icon svg {
    width: 100%;
    height: 100%;
}

.help-category-name {
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
}

/* Popular articles */
.help-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-article-item {
    margin-bottom: 8px;
}

.help-article-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.help-article-link:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.help-article-icon {
    width: 16px;
    height: 16px;
    color: #94A3B8;
}

/* Panel footer */
.help-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    background: #F8FAFC;
}

/* Contact button */
.help-contact-btn {
    width: 100%;
    padding: 12px;
    background: #475569;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.help-contact-btn:hover {
    background: #334155;
    transform: translateY(-1px);
}

.help-contact-btn svg {
    width: 18px;
    height: 18px;
}

/* Search results */
.help-search-results {
    display: none;
}

.help-search-results.active {
    display: block;
}

.help-no-results {
    text-align: center;
    padding: 32px;
    color: #64748B;
}

.help-no-results svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Loading state */
.help-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.help-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E2E8F0;
    border-top-color: #14B8A6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Help Center Page
   ======================================== */

.help-center-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.help-center-header {
    text-align: center;
    margin-bottom: 3rem;
}

.help-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.help-center-subtitle {
    font-size: 1.25rem;
    color: #64748B;
}

/* Main search */
.help-main-search {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.help-main-search .help-search-box {
    position: relative;
}

.help-main-search .help-search-input {
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.help-main-search .help-search-icon {
    width: 24px;
    height: 24px;
    right: 16px;
}

/* Category cards grid for main help page */
.help-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 3rem;
}

.help-category-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.help-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #14B8A6;
}

.help-category-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #14B8A6;
}

.help-category-card-icon svg {
    width: 100%;
    height: 100%;
}

.help-category-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.help-category-card-desc {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.help-category-card-count {
    font-size: 13px;
    color: #94A3B8;
    margin: 0;
}

/* ========================================
   Category Page - Premium Design
   ======================================== */

/* Hero Section for Category Pages */
.help-category-hero {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 4rem 0;
    margin: -2rem -2rem 3rem -2rem;
    position: relative;
    overflow: hidden;
}

/* Animated dots pattern - matching login page */
.help-category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.help-category-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.help-category-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-category-hero-icon svg {
    width: 48px;
    height: 48px;
    color: white;
}

.help-category-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-category-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb */
.help-breadcrumb {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.help-breadcrumb a {
    color: #14B8A6;
    text-decoration: none;
}

.help-breadcrumb a:hover {
    text-decoration: underline;
}

.help-breadcrumb-separator {
    color: #94A3B8;
}

/* Articles Grid - Premium Cards */
.help-articles-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.help-article-premium-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.help-article-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Article Card Header */
.article-card-header {
    padding: 2rem 2rem 1.5rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-type-icon {
    width: 40px;
    height: 40px;
    background: #14B8A6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-type-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.article-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.article-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-new {
    background: #F0FDFA;
    color: #14B8A6;
}

.badge-popular {
    background: #FEF3F2;
    color: #EF4444;
}

.badge-updated {
    background: #EFF6FF;
    color: #3B82F6;
}

.article-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    line-height: 1.3;
}

/* Article Card Body */
.article-card-body {
    padding: 1.5rem 2rem;
    flex: 1;
}

.article-preview {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.article-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #94A3B8;
}

.article-stat svg {
    width: 16px;
    height: 16px;
}

/* Article Card Footer */
.article-card-footer {
    padding: 1.5rem 2rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #14B8A6;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.read-article-link:hover {
    gap: 0.75rem;
}

.read-article-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.read-article-link:hover svg {
    transform: translateX(4px);
}

/* Category page header */
.help-category-header {
    margin-bottom: 2rem;
}

.help-category-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-category-header p {
    font-size: 1.125rem;
    color: #64748B;
}

/* Articles grid */
.help-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.help-article-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}

.help-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14B8A6;
}

.help-article-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 10px 0;
}

.help-article-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Help Page Main Content
   ======================================== */

.help-page-content {
    flex: 1;
    width: 100%;
    /* No max-width constraint - let child elements control their own width */
}

/* ========================================
   Article Page Layout
   ======================================== */

.help-article-container {
    width: 100%;
}

.help-article-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;  /* TOC on left, content on right */
    gap: 4rem;
}

.help-article-main {
    min-width: 0;
    overflow: hidden;
    order: 2;  /* Ensure main content is second */
}

/* Floating Table of Contents */
.help-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
    order: 1;  /* Ensure TOC is first */
}

/* Floating Table of Contents */
.help-toc {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.help-toc-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    border: 1px solid #E2E8F0;
}

.help-toc-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-toc-item {
    margin-bottom: 0.5rem;
}

.help-toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #64748B;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    padding-left: 1.5rem;
}

.help-toc-link::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #CBD5E1;
    border-radius: 50%;
    transition: all 0.2s;
}

.help-toc-link:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.help-toc-link.active {
    background: #F0FDFA;
    color: #14B8A6;
    font-weight: 500;
}

.help-toc-link.active::before {
    width: 4px;
    height: 16px;
    background: #14B8A6;
    border-radius: 2px;
}

/* Reading Progress Bar */
.help-reading-progress {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 3px;
    background: #E2E8F0;
    z-index: 50;
}

.help-reading-progress-bar {
    height: 100%;
    background: #14B8A6;
    width: 0%;
    transition: width 0.1s ease;
}

/* Article */
.help-article {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.help-article-header {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 3rem;
    border-bottom: 1px solid #E2E8F0;
    position: relative;
}

.help-article-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #14B8A6;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.help-article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.help-article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748B;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.help-article-meta-item svg {
    width: 18px;
    height: 18px;
}

/* Article Content Typography */
.help-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #475569;
    padding: 3rem;
}

.help-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0F172A;
    margin: 3rem 0 1.5rem;
    line-height: 1.3;
}

.help-article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #0F172A;
    margin: 2.5rem 0 1rem;
    line-height: 1.4;
}

.help-article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin: 2rem 0 0.75rem;
}

.help-article-content p {
    margin-bottom: 1.5rem;
}

.help-article-content ul,
.help-article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.help-article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.help-article-content code {
    background: #F1F5F9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #E11D48;
}

.help-article-content pre {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.help-article-content pre code {
    background: none;
    padding: 0;
    color: #0F172A;
}

.help-article-content blockquote {
    border-left: 4px solid #14B8A6;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #64748B;
}

.help-article-content a {
    color: #14B8A6;
    text-decoration: underline;
}

.help-article-content a:hover {
    color: #0D9488;
}

/* Quick Start Steps */
.quick-start-steps {
    background: #F8FAFC;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #E2E8F0;
    counter-reset: step;
}

.quick-start-steps h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-start-steps ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-start-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.quick-start-steps li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #14B8A6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Feature List */
.feature-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item-modern {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.2s;
}

.feature-item-modern:hover {
    border-color: #14B8A6;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #F0FDFA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #14B8A6;
}

.feature-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 0.25rem 0;
}

.feature-content p {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
    line-height: 1.5;
}

/* Info Box */
.info-box {
    background: #F0FDFA;
    border: 1px solid #14B8A6;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    padding-left: 3.5rem;
}

.info-box::before {
    content: 'ℹ';
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 28px;
    height: 28px;
    background: #14B8A6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Article feedback */
.help-article-feedback {
    margin: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 12px;
    text-align: center;
    border: 1px solid #E2E8F0;
}

.help-feedback-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
}

.help-feedback-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.help-feedback-btn {
    padding: 0.75rem 2rem;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-feedback-btn:hover {
    border-color: #14B8A6;
    background: #F0FDFA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.help-feedback-btn.active {
    background: #14B8A6;
    color: white;
    border-color: #14B8A6;
}

/* Related Articles */
.help-related {
    margin: 0;
    padding: 3rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
}

.help-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 2rem;
    text-align: center;
}

.help-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.help-related-link {
    padding: 1.5rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.help-related-link:hover {
    border-color: #14B8A6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.help-related-link h4 {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.related-icon {
    width: 40px;
    height: 40px;
    background: #F0FDFA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.related-icon svg {
    width: 24px;
    height: 24px;
    color: #14B8A6;
}

/* Sidebar (removed from article view) */
.help-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.help-sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E2E8F0;
}

.help-sidebar-section:last-child {
    border-bottom: none;
}

.help-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.help-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.help-sidebar-link {
    padding: 0.75rem 1rem;
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
    display: block;
}

.help-sidebar-link:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.help-sidebar-link.active {
    background: #F0FDFA;
    color: #14B8A6;
    font-weight: 500;
}

/* ========================================
   Contact Section
   ======================================== */

.help-contact-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid #E2E8F0;
}

.help-contact-section .section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.5rem;
    text-align: center;
}

.help-contact-section .section-subtitle {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 2rem;
    text-align: center;
}

/* Contact CTA */
.help-contact-cta {
    text-align: center;
    margin-top: 2rem;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #14B8A6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.2);
}

.btn-primary-large:hover {
    background: #0D9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(20, 184, 166, 0.3);
}

.help-login-prompt {
    color: #64748B;
    margin-bottom: 1.5rem;
}

/* ========================================
   Support Contact Page
   ======================================== */

/* Page Container */
.support-page-container {
    background: #F8FAFC;
    min-height: calc(100vh - 64px);
}

/* Hero Section */
.support-hero {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.support-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: drift 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Main Content */
.support-content {
    max-width: 900px;
    margin: -2rem auto 0;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 2;
}

/* Support Form Card */
.support-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Support Features Grid */
.support-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.5rem;
    background: #FAFBFC;
    border-bottom: 1px solid #E2E8F0;
}

.support-feature-item {
    text-align: center;
}

.support-feature-item .feature-icon {
    width: 48px;
    height: 48px;
    background: #F0FDFA;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #14B8A6;
}

.feature-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
}

/* Form Wrapper */
.support-form-wrapper {
    padding: 2.5rem;
}

.support-form-wrapper .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.support-form-wrapper .form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.support-form-wrapper .form-subtitle {
    font-size: 1rem;
    color: #64748B;
}

/* User Info Display */
.user-info-display {
    background: #F0FDFA;
    border: 1px solid #A7F3D0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #0D9488;
}

.user-info-display strong {
    color: #047857;
    font-weight: 600;
}

/* Form Styles */
.support-ticket-form .form-group {
    margin-bottom: 1.5rem;
}

.support-ticket-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.support-ticket-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #0F172A;
    transition: all 0.2s;
}

.support-ticket-form .form-input:focus {
    outline: none;
    border-color: #14B8A6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Priority Selector */
.priority-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.priority-option {
    position: relative;
    cursor: pointer;
}

.priority-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.priority-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
}

.priority-label:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
}

.priority-option input[type="radio"]:checked + .priority-label {
    border-color: #14B8A6;
    background: #F0FDFA;
}

.priority-label.low {
    color: #6B7280;
}

.priority-label.medium {
    color: #3B82F6;
}

.priority-label.high {
    color: #EF4444;
}

.priority-label small {
    display: block;
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* Form Textarea */
.support-ticket-form .form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Checkbox */
.support-ticket-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #475569;
}

.support-ticket-form .checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    margin-top: 2rem;
}

.support-ticket-form .submit-btn {
    width: 100%;
    background: #14B8A6;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.2);
}

.support-ticket-form .submit-btn:hover:not(:disabled) {
    background: #0D9488;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(20, 184, 166, 0.3);
}

.support-ticket-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Note */
.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748B;
}

.form-note svg {
    flex-shrink: 0;
}

.form-note a {
    color: #14B8A6;
    font-weight: 500;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Quick Links */
.support-quick-links {
    margin-top: 3rem;
}

.support-quick-links h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14B8A6;
    color: #0F172A;
}

.quick-link-card svg {
    width: 32px;
    height: 32px;
    color: #14B8A6;
    margin-bottom: 0.75rem;
}

.quick-link-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon-large {
    width: 96px;
    height: 96px;
    background: #F0FDFA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon-large svg {
    color: #14B8A6;
}

.success-state h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.success-ticket-id {
    font-size: 1.125rem;
    font-weight: 600;
    color: #14B8A6;
    margin-bottom: 0.5rem;
}

.success-state p {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.help-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.help-btn-primary {
    background: #14B8A6;
    color: white;
}

.help-btn-primary:hover {
    background: #0D9488;
    transform: translateY(-1px);
}

.help-btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.help-btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    /* Article page layout */
    .help-article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .help-toc {
        position: static;
        order: -1;  /* Move TOC above article on tablet/mobile */
        margin-bottom: 2rem;
    }
    
    .help-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: #F8FAFC;
        border-radius: 8px;
    }
    
    .help-sidebar-section {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .help-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .help-widget-panel {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: calc(100vh - 120px);
    }
    
    .help-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .help-category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .support-features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .support-form-wrapper {
        padding: 1.5rem;
    }
    
    .priority-selector {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .success-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .success-actions .help-btn {
        width: 100%;
        text-align: center;
    }
    
    .help-article-header {
        padding: 2rem;
    }
    
    .help-article-title {
        font-size: 2rem;
    }
    
    .help-article-content {
        padding: 2rem;
        font-size: 16px;
    }
    
    .help-articles-premium-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .support-content {
        padding: 0 1rem 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .help-article-header {
        padding: 1.5rem;
    }
    
    .help-article-title {
        font-size: 1.75rem;
    }
    
    .help-article-content {
        font-size: 15px;
        padding: 1.5rem;
    }
}