/* ==========================================================================
   SalesControl - Help Center Stylesheet
   Design System: Navy + Gold | Font: Plus Jakarta Sans
   ========================================================================== */

/* ========== DESIGN TOKENS ========== */
:root {
    /* Navy + Gold Palette */
    --primary: #0F172A;
    --primary-light: #1E293B;
    --primary-lighter: #334155;
    --secondary: #1E3A8A;
    --secondary-light: #3B82F6;
    --accent: #CA8A04;
    --accent-light: #EAB308;
    --accent-hover: #A16207;
    --accent-soft: rgba(202, 138, 4, 0.1);
    --accent-glow: rgba(234, 179, 8, 0.25);

    /* Semantic Colors */
    --success: #059669;
    --success-bg: #D1FAE5;
    --success-text: #065F46;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --warning-text: #92400E;
    --danger: #DC2626;
    --danger-bg: #FEE2E2;
    --danger-text: #991B1B;
    --info: #2563EB;
    --info-bg: #DBEAFE;
    --info-text: #1E40AF;

    /* Neutrals (Slate scale) */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --white: #FFFFFF;
    --bg: #F8FAFC;
    --text: #020617;
    --text-muted: #64748B;

    /* Spacing scale (4px base) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 25px 50px rgba(15, 23, 42, 0.15);
    --shadow-gold: 0 4px 14px rgba(202, 138, 4, 0.15);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Layout */
    --header-height: 64px;
    --content-max-width: 1200px;
    --article-max-width: 800px;
    --sidebar-width: 280px;
}


/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--accent-soft);
    color: var(--primary);
}


/* ==========================================================================
   2. HEADER (.help-header)
   ========================================================================== */

.help-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.help-header-left {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.help-header-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-lg);
    letter-spacing: -0.01em;
}

.help-header-logo img {
    height: 32px;
    width: auto;
}

.help-header-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.help-header-logo .logo-sub {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-header-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 var(--sp-2);
}

.help-header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.help-header-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--gray-300);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.help-header-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.help-header-link svg,
.help-header-link i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Language Switcher with Flags */
.help-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.help-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: inherit;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.help-lang-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.help-lang-btn.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(202, 138, 4, 0.3);
    font-weight: 600;
}

.help-lang-btn .flag-icon {
    font-size: 1.15em;
    line-height: 1;
}


/* ==========================================================================
   3. HERO SECTION (.help-hero)
   ========================================================================== */

.help-hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 60%, var(--primary-light) 100%);
    padding: 60px var(--sp-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(202, 138, 4, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.help-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -15%;
    width: 50%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.help-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.help-hero h1 {
    color: var(--white);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--sp-3);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.help-hero p {
    color: var(--gray-400);
    font-size: var(--text-lg);
    margin-bottom: var(--sp-8);
    font-weight: 400;
}


/* ==========================================================================
   4. SEARCH (.help-search-container)
   ========================================================================== */

.help-search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.help-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.help-search-icon {
    position: absolute;
    left: var(--sp-5);
    color: var(--gray-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    z-index: 2;
}

.help-search-icon svg {
    width: 20px;
    height: 20px;
}

.help-search-input {
    width: 100%;
    padding: var(--sp-4) var(--sp-5);
    padding-left: 52px;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 0 var(--accent-glow);
    transition: all var(--transition-base);
    outline: none;
    height: 56px;
}

.help-search-input::placeholder {
    /* --text-muted: ≥ 4.5:1 sul campo in entrambi i temi (gray-400 era 2.6:1). */
    color: var(--text-muted);
    font-weight: 400;
}

.help-search-input:hover {
    box-shadow: var(--shadow-xl), 0 0 0 0 var(--accent-glow);
}

.help-search-input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl), 0 0 0 4px var(--accent-glow);
}

.help-search-clear {
    position: absolute;
    right: var(--sp-4);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--sp-1);
    border-radius: var(--radius-full);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.help-search-clear.visible {
    display: flex;
}

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

/* Search Results Dropdown */
.help-search-results {
    position: absolute;
    top: calc(100% + var(--sp-2));
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 420px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

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

.help-search-results-header {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.help-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.help-search-result-item:last-child {
    border-bottom: none;
}

.help-search-result-item:hover,
.help-search-result-item.active {
    background: var(--accent-soft);
    color: var(--text);
}

.help-search-result-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    margin-top: 2px;
}

.help-search-result-item:hover .help-search-result-icon {
    background: rgba(202, 138, 4, 0.15);
}

.help-search-result-content {
    flex: 1;
    min-width: 0;
}

.help-search-result-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-search-result-title mark {
    background: var(--accent-glow);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

.help-search-result-excerpt {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.help-search-result-category {
    font-size: var(--text-xs);
    color: var(--accent);
    font-weight: 500;
    margin-top: 2px;
}

.help-search-no-results {
    padding: var(--sp-8) var(--sp-4);
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.help-search-no-results .no-results-icon {
    font-size: var(--text-3xl);
    margin-bottom: var(--sp-2);
    opacity: 0.5;
}

/* Keyboard hint */
.help-search-hint {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}

.help-search-hint span {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.help-search-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 var(--sp-1);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}


/* ==========================================================================
   5. MAIN CONTENT AREA
   ========================================================================== */

.help-main {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--sp-10) var(--sp-8);
    min-height: 60vh;
}

.help-section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.01em;
}

.help-section-subtitle {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--sp-8);
}


/* ==========================================================================
   6. CATEGORY GRID (.help-category-grid)
   ========================================================================== */

.help-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    margin-bottom: var(--sp-10);
}


/* ==========================================================================
   7. CATEGORY CARDS (.help-category-card)
   ========================================================================== */

.help-category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.help-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.help-category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-gold);
}

.help-category-card:hover::before {
    transform: scaleX(1);
}

.help-category-card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--sp-4);
    line-height: 1;
}

.help-category-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--sp-2);
    line-height: 1.3;
}

.help-category-card-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--sp-4);
    flex: 1;
}

.help-category-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--gray-100);
}

.help-category-card-count {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}

.help-category-card-count .count-number {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 11px;
    transition: all var(--transition-fast);
}

.help-category-card:hover .count-number {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.help-category-card-arrow {
    color: var(--gray-300);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.help-category-card:hover .help-category-card-arrow {
    color: var(--accent);
    transform: translateX(3px);
}


/* ==========================================================================
   7b. ROLES SECTION (.help-roles)
   ========================================================================== */

.help-roles {
    background: var(--gray-50);
    padding: var(--sp-10) var(--sp-8);
    border-top: 1px solid var(--gray-200);
}

.help-roles-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.help-roles-inner h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.01em;
}

.help-roles-intro {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--sp-6);
}

.help-roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
}

.help-role-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    transition: all var(--transition-base);
}

.help-role-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md), var(--shadow-gold);
    transform: translateY(-2px);
}

.help-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-3);
}

.help-role-admin { background: var(--primary); color: var(--white); }
.help-role-setter { background: var(--info-bg); color: var(--info-text); }
.help-role-closer { background: var(--success-bg); color: var(--success-text); }
.help-role-pm { background: #EDE9FE; color: #5B21B6; }

.help-role-item p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   7c. FOOTER BRAND
   ========================================================================== */

.help-footer-brand {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-2);
}

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

/* --- Content Container --- */
.help-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-6);
}

/* --- Back Navigation Link --- */
.help-back-nav {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--accent);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    margin-bottom: var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.help-back-nav:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.help-back-nav svg {
    transition: transform var(--transition-fast);
}

.help-back-nav:hover svg {
    transform: translateX(-3px);
}


/* ==========================================================================
   8. CATEGORY PAGE - Article List
   ========================================================================== */

.help-category-header {
    margin-bottom: var(--sp-8);
}

.help-category-header .category-icon {
    font-size: 2.5rem;
    margin-bottom: var(--sp-3);
}

.help-category-header h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-2);
    letter-spacing: -0.01em;
}

.help-category-header p {
    font-size: var(--text-base);
    color: var(--text-muted);
    max-width: 600px;
}

.help-article-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.help-article-list-item {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

.help-article-list-item:hover {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.help-article-list-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.help-article-list-item:hover .help-article-list-item-icon {
    background: var(--accent-soft);
    color: var(--accent);
}

.help-article-list-item-content {
    flex: 1;
    min-width: 0;
}

.help-article-list-item-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.help-article-list-item-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.help-article-list-item-badges {
    display: flex;
    gap: var(--sp-1);
    flex-shrink: 0;
}

.help-article-list-item-chevron {
    flex-shrink: 0;
    color: var(--gray-300);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.help-article-list-item:hover .help-article-list-item-chevron {
    color: var(--accent);
    transform: translateX(2px);
}


/* ==========================================================================
   9. ARTICLE PAGE (.help-article)
   ========================================================================== */

.help-article {
    max-width: var(--article-max-width);
    margin: 0 auto;
    padding: var(--sp-10) var(--sp-6);
}

/* --- Breadcrumbs --- */
.help-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-1);
    margin-bottom: var(--sp-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.help-breadcrumbs a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.help-breadcrumbs a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.help-breadcrumbs .breadcrumb-separator {
    color: var(--gray-300);
    margin: 0 var(--sp-1);
    font-size: var(--text-xs);
    display: flex;
    align-items: center;
}

.help-breadcrumbs .breadcrumb-current {
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Article Typography --- */
.help-article h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-4);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.help-article h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--gray-100);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.help-article h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-light);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-3);
    line-height: 1.4;
}

.help-article h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-lighter);
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-2);
}

.help-article p {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: var(--sp-4);
}

.help-article strong {
    font-weight: 600;
    color: var(--primary);
}

.help-article em {
    font-style: italic;
    color: var(--gray-600);
}

.help-article code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: var(--gray-100);
    color: var(--danger);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--gray-200);
}

.help-article pre {
    background: var(--primary);
    color: var(--gray-200);
    padding: var(--sp-5);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: var(--sp-5);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: var(--text-sm);
    line-height: 1.7;
}

.help-article pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
}

.help-article ul,
.help-article ol {
    margin-bottom: var(--sp-4);
    padding-left: var(--sp-6);
}

.help-article ul {
    list-style: disc;
}

.help-article ol {
    list-style: decimal;
}

.help-article li {
    font-size: var(--text-base);
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: var(--sp-2);
}

.help-article li::marker {
    color: var(--accent);
}

.help-article blockquote {
    border-left: 4px solid var(--accent);
    padding: var(--sp-4) var(--sp-5);
    background: var(--accent-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--sp-5);
    color: var(--gray-700);
    font-style: italic;
}

.help-article hr {
    border: none;
    height: 1px;
    background: var(--gray-200);
    margin: var(--sp-8) 0;
}

.help-article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--sp-5);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.help-article table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--primary);
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 2px solid var(--gray-200);
}

.help-article table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.help-article table tr:last-child td {
    border-bottom: none;
}

.help-article table tr:hover td {
    background: var(--gray-50);
}

/* --- Article Meta --- */
.help-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--gray-200);
}

.help-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.help-article-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}


/* ==========================================================================
   10. ROLE BADGES (.help-badge)
   ========================================================================== */

.help-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.6;
    text-transform: uppercase;
}

.help-badge-admin {
    background: var(--primary);
    color: var(--white);
}

.help-badge-setter {
    background: var(--info-bg);
    color: var(--info-text);
}

.help-badge-closer {
    background: var(--success-bg);
    color: var(--success-text);
}

.help-badge-pm {
    background: #EDE9FE;
    color: #6D28D9;
}

.help-badge-all {
    background: var(--gray-100);
    color: var(--gray-600);
}


/* ==========================================================================
   11. STEP-BY-STEP LIST (.help-steps)
   ========================================================================== */

.help-steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
    margin: var(--sp-5) 0;
}

.help-step {
    counter-increment: step-counter;
    position: relative;
    padding-left: 52px;
    padding-bottom: var(--sp-6);
    margin-bottom: var(--sp-2);
    min-height: 40px;
}

/* Gold numbered circle */
.help-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(202, 138, 4, 0.25);
    line-height: 1;
}

/* Connecting line between steps */
.help-step::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.help-step:last-child::after {
    display: none;
}

.help-step:last-child {
    padding-bottom: 0;
}

.help-step-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--sp-2);
    padding-top: 4px;
}

.help-step-content {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
}

.help-step-content p {
    font-size: var(--text-sm);
    margin-bottom: var(--sp-2);
}


/* ==========================================================================
   12. SCREENSHOT IMAGES (.help-screenshot)
   ========================================================================== */

.help-screenshot {
    display: block;
    width: 100%;
    max-width: 700px;
    margin: var(--sp-4) 0;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.help-screenshot:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.01);
}

.help-screenshot-wrapper {
    position: relative;
    margin: var(--sp-4) 0;
    max-width: 700px;
}

.help-screenshot-caption {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--sp-2);
    font-style: italic;
}

/* Lightbox (when clicking screenshot) */
.help-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.help-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.help-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}


/* ==========================================================================
   13. NOTES & WARNINGS (.help-note, .help-warning)
   ========================================================================== */

.help-note,
.help-warning,
.help-tip,
.help-danger {
    position: relative;
    padding: var(--sp-4) var(--sp-5);
    padding-left: var(--sp-5);
    margin: var(--sp-5) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border-left: 4px solid;
    font-size: var(--text-sm);
    line-height: 1.7;
}

.help-note {
    background: var(--info-bg);
    border-left-color: var(--info);
    color: var(--info-text);
}

.help-warning {
    background: var(--warning-bg);
    border-left-color: var(--warning);
    color: var(--warning-text);
}

.help-tip {
    background: var(--success-bg);
    border-left-color: var(--success);
    color: var(--success-text);
}

.help-danger {
    background: var(--danger-bg);
    border-left-color: var(--danger);
    color: var(--danger-text);
}

.help-note-title,
.help-warning-title,
.help-tip-title,
.help-danger-title {
    font-weight: 700;
    margin-bottom: var(--sp-1);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.help-note p,
.help-warning p,
.help-tip p,
.help-danger p {
    color: inherit;
    margin-bottom: var(--sp-1);
}

.help-note p:last-child,
.help-warning p:last-child,
.help-tip p:last-child,
.help-danger p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   14. RELATED ARTICLES (.help-related)
   ========================================================================== */

.help-related {
    margin-top: var(--sp-10);
    padding-top: var(--sp-6);
    border-top: 2px solid var(--gray-100);
}

.help-related h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-4);
    margin-top: 0;
}

.help-related-list {
    list-style: none;
    padding-left: 0;
}

.help-related-list li {
    margin-bottom: var(--sp-2);
}

.help-related-list a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.help-related-list a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.help-related-list a:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

.help-related-list a:hover::before {
    transform: scale(1.3);
    background: var(--accent-hover);
}


/* ==========================================================================
   15. FEEDBACK BUTTONS (.btn-feedback)
   ========================================================================== */

.help-feedback {
    margin-top: var(--sp-10);
    padding: var(--sp-6);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
}

.help-feedback-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--sp-3);
}

.help-feedback-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
}

.btn-feedback {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-feedback:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.btn-feedback.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-feedback .feedback-emoji {
    font-size: var(--text-lg);
    line-height: 1;
}

.help-feedback-thanks {
    display: none;
    padding: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--success);
    font-weight: 500;
}

.help-feedback-thanks.active {
    display: block;
}


/* ==========================================================================
   16. FOOTER (.help-footer)
   ========================================================================== */

.help-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: var(--sp-10) var(--sp-8) var(--sp-6);
    margin-top: auto;
}

.help-footer-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.help-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
    margin-bottom: var(--sp-8);
}

.help-footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--sp-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-footer-col ul {
    list-style: none;
    padding: 0;
}

.help-footer-col li {
    margin-bottom: var(--sp-2);
}

.help-footer-col a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
}

.help-footer-col a:hover {
    color: var(--accent);
}

.help-footer-bottom {
    padding-top: var(--sp-5);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.help-footer-copyright {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.help-footer-links {
    display: flex;
    gap: var(--sp-4);
}

.help-footer-links a {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.help-footer-links a:hover {
    color: var(--accent);
}


/* ==========================================================================
   17. LANGUAGE SWITCHER (.lang-switcher)
   ========================================================================== */

.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher-btn {
    padding: var(--sp-1) var(--sp-3);
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.lang-switcher-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.lang-switcher-btn.active {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 1px 4px rgba(202, 138, 4, 0.3);
}

/* Light variant (for use outside dark headers) */
.lang-switcher--light {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

.lang-switcher--light .lang-switcher-btn {
    color: var(--text-muted);
}

.lang-switcher--light .lang-switcher-btn:hover {
    color: var(--text);
}

.lang-switcher--light .lang-switcher-btn.active {
    background: var(--accent);
    color: var(--white);
}


/* ==========================================================================
   18. SCROLL TO TOP BUTTON
   ========================================================================== */

.scroll-to-top {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), 0 4px 12px rgba(202, 138, 4, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    z-index: 90;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 6px 16px rgba(202, 138, 4, 0.3);
}

.scroll-to-top:active {
    transform: translateY(0);
}


/* ==========================================================================
   19. ANIMATIONS & TRANSITIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.animate-fade-in {
    animation: fadeIn var(--transition-slow) ease both;
}

.animate-fade-in-up {
    animation: fadeInUp 400ms ease both;
}

.animate-fade-in-down {
    animation: fadeInDown var(--transition-slow) ease both;
}

/* Staggered animation delays for grid children */
.help-category-grid .help-category-card:nth-child(1) { animation-delay: 0ms; }
.help-category-grid .help-category-card:nth-child(2) { animation-delay: 60ms; }
.help-category-grid .help-category-card:nth-child(3) { animation-delay: 120ms; }
.help-category-grid .help-category-card:nth-child(4) { animation-delay: 180ms; }
.help-category-grid .help-category-card:nth-child(5) { animation-delay: 240ms; }
.help-category-grid .help-category-card:nth-child(6) { animation-delay: 300ms; }
.help-category-grid .help-category-card:nth-child(7) { animation-delay: 360ms; }
.help-category-grid .help-category-card:nth-child(8) { animation-delay: 420ms; }
.help-category-grid .help-category-card:nth-child(9) { animation-delay: 480ms; }


/* ==========================================================================
   20. LOADING / SKELETON STATES
   ========================================================================== */

.help-skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.help-skeleton-text {
    height: 14px;
    margin-bottom: var(--sp-2);
    border-radius: 4px;
}

.help-skeleton-text.short {
    width: 60%;
}

.help-skeleton-title {
    height: 22px;
    margin-bottom: var(--sp-3);
    width: 80%;
}


/* ==========================================================================
   21. UTILITY CLASSES
   ========================================================================== */

/* Text */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }

/* Font weight */
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Margin */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }

.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }

.ml-2 { margin-left: var(--sp-2); }
.mr-2 { margin-right: var(--sp-2); }

/* Padding */
.p-4 { padding: var(--sp-4); }
.p-5 { padding: var(--sp-5); }
.p-6 { padding: var(--sp-6); }
.px-4 { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.py-4 { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }

/* Display */
.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Visibility */
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Borders & Rounded */
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--gray-200); }
.border-top { border-top: 1px solid var(--gray-200); }

/* Backgrounds */
.bg-white { background: var(--white); }
.bg-gray-50 { background: var(--gray-50); }
.bg-gray-100 { background: var(--gray-100); }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Width */
.w-full { width: 100%; }
.max-w-article { max-width: var(--article-max-width); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Truncation */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   22. RESPONSIVE - TABLET (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }

    .help-hero {
        padding: 48px var(--sp-6);
    }

    .help-hero h1 {
        font-size: var(--text-3xl);
    }

    .help-main {
        padding: var(--sp-8) var(--sp-6);
    }

    .help-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-5);
    }

    .help-roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-6);
    }

    .help-article {
        padding: var(--sp-8) var(--sp-5);
    }

    .help-article h1 {
        font-size: var(--text-2xl);
    }

    .help-article h2 {
        font-size: var(--text-xl);
    }
}


/* ==========================================================================
   23. RESPONSIVE - MOBILE (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .help-header {
        padding: 0 var(--sp-4);
    }

    .help-header-logo .logo-text {
        display: none;
    }

    .help-header-link span {
        display: none;
    }

    .help-hero {
        padding: 40px var(--sp-4);
    }

    .help-hero h1 {
        font-size: var(--text-2xl);
    }

    .help-hero p {
        font-size: var(--text-base);
        margin-bottom: var(--sp-5);
    }

    .help-search-input {
        height: 50px;
        font-size: var(--text-sm);
    }

    .help-search-hint {
        display: none;
    }

    .help-main {
        padding: var(--sp-6) var(--sp-4);
    }

    .help-section-title {
        font-size: var(--text-xl);
    }

    .help-category-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
    }

    .help-roles-grid {
        grid-template-columns: 1fr;
    }

    .help-roles {
        padding: var(--sp-8) var(--sp-4);
    }

    .help-lang-btn .lang-label {
        display: none;
    }

    .help-category-card {
        padding: var(--sp-5);
    }

    .help-category-card-icon {
        font-size: 2rem;
        margin-bottom: var(--sp-3);
    }

    .help-category-card-title {
        font-size: var(--text-lg);
    }

    .help-article {
        padding: var(--sp-6) var(--sp-4);
    }

    .help-article h1 {
        font-size: var(--text-xl);
        line-height: 1.3;
    }

    .help-article h2 {
        font-size: var(--text-lg);
        margin-top: var(--sp-8);
    }

    .help-article h3 {
        font-size: var(--text-base);
    }

    .help-breadcrumbs {
        font-size: var(--text-xs);
    }

    .help-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .help-step {
        padding-left: 44px;
    }

    .help-step::before {
        width: 28px;
        height: 28px;
        font-size: var(--text-xs);
    }

    .help-step::after {
        left: 13px;
        top: 32px;
    }

    .help-screenshot {
        border-radius: var(--radius-sm);
    }

    .help-feedback-buttons {
        flex-direction: column;
    }

    .btn-feedback {
        width: 100%;
        justify-content: center;
    }

    .help-footer {
        padding: var(--sp-8) var(--sp-4) var(--sp-5);
    }

    .help-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }

    .help-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .help-article-list-item {
        padding: var(--sp-3) var(--sp-4);
    }

    .help-article-list-item-description {
        display: none;
    }

    .help-article-list-item-badges {
        display: none;
    }

    .scroll-to-top {
        bottom: var(--sp-4);
        right: var(--sp-4);
        width: 40px;
        height: 40px;
    }

    .lang-switcher {
        margin-left: 0;
    }

    .help-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .help-container {
        padding: var(--sp-6) var(--sp-4);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .help-hero {
        padding: 32px var(--sp-3);
    }

    .help-hero h1 {
        font-size: var(--text-xl);
    }

    .help-search-input {
        height: 46px;
        padding-left: 44px;
    }

    .help-search-icon {
        left: var(--sp-4);
    }

    .help-search-icon svg {
        width: 18px;
        height: 18px;
    }

    .help-main {
        padding: var(--sp-5) var(--sp-3);
    }

    .help-category-card {
        padding: var(--sp-4);
    }

    .help-article {
        padding: var(--sp-5) var(--sp-3);
    }
}


/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .help-header,
    .help-hero,
    .help-footer,
    .help-search-container,
    .help-feedback,
    .scroll-to-top,
    .lang-switcher,
    .help-header-right,
    .help-lightbox {
        display: none !important;
    }

    .help-article {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .help-article h1 {
        font-size: 20pt;
        margin-bottom: 12pt;
        page-break-after: avoid;
    }

    .help-article h2 {
        font-size: 16pt;
        margin-top: 18pt;
        border-bottom: 1px solid #ccc;
        page-break-after: avoid;
    }

    .help-article h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }

    .help-article p {
        orphans: 3;
        widows: 3;
    }

    .help-breadcrumbs {
        margin-bottom: 12pt;
    }

    .help-breadcrumbs a {
        color: #000 !important;
        text-decoration: underline;
    }

    .help-screenshot {
        max-width: 100%;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .help-note,
    .help-warning,
    .help-tip,
    .help-danger {
        border: 1px solid #ccc;
        border-left: 4px solid #999;
        page-break-inside: avoid;
    }

    .help-step {
        page-break-inside: avoid;
    }

    .help-step::before {
        background: #333 !important;
        color: #fff !important;
    }

    .help-step::after {
        background: #ccc !important;
    }

    .help-badge {
        border: 1px solid #999;
    }

    .help-related-list a::before {
        background: #333 !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666 !important;
    }

    .help-breadcrumbs a[href]::after,
    .help-related-list a[href]::after {
        content: "";
    }

    @page {
        margin: 2cm;
    }
}


/* ==========================================================================
   25. ACCESSIBLE FOCUS STYLES
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .help-category-card {
        border-width: 2px;
    }

    .help-article-list-item {
        border-width: 2px;
    }

    .help-note,
    .help-warning,
    .help-tip,
    .help-danger {
        border-left-width: 6px;
    }

    .help-search-input:focus {
        border-width: 3px;
    }

    .help-badge {
        border: 1px solid currentColor;
    }
}


/* ==========================================================================
   26. DARK MODE (optional, triggered by class)
   ========================================================================== */

[data-theme="dark"] {
    --bg: #0B0F1A;
    --text: #E2E8F0;
    --text-muted: #94A3B8;
    --white: #111827;
    --gray-50: #111827;
    --gray-100: #1E293B;
    --gray-200: #334155;
    --gray-300: #475569;
}

[data-theme="dark"] .help-category-card {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

[data-theme="dark"] .help-category-card-title {
    color: var(--gray-200);
}

[data-theme="dark"] .help-search-input {
    background: var(--gray-100);
    color: var(--text);
    border-color: var(--gray-200);
}

[data-theme="dark"] .help-search-results {
    background: var(--gray-100);
    border-color: var(--gray-200);
}

[data-theme="dark"] .help-article-list-item {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

[data-theme="dark"] .help-footer {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

[data-theme="dark"] .help-feedback {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

[data-theme="dark"] .btn-feedback {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--text-muted);
}


/* ==========================================================================
   27. SCROLLBAR STYLING
   ========================================================================== */

.help-search-results::-webkit-scrollbar,
.help-article::-webkit-scrollbar {
    width: 6px;
}

.help-search-results::-webkit-scrollbar-track,
.help-article::-webkit-scrollbar-track {
    background: transparent;
}

.help-search-results::-webkit-scrollbar-thumb,
.help-article::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

.help-search-results::-webkit-scrollbar-thumb:hover,
.help-article::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Firefox scrollbar */
.help-search-results,
.help-article {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

/* ==========================================================================
   Search band (compact search on category & article pages)
   ========================================================================== */
.help-search-band {
    max-width: 100%;
    margin: 0 0 var(--sp-6, 24px) 0;
}

.help-search-band .help-search-input {
    height: 48px;
    box-shadow: var(--shadow-md), 0 0 0 0 var(--accent-glow);
    border: 2px solid var(--gray-200);
}

.help-search-band .help-search-input:hover {
    box-shadow: var(--shadow-lg), 0 0 0 0 var(--accent-glow);
}

.help-search-band .help-search-input:focus {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-glow);
}

[data-theme="dark"] .help-search-band .help-search-input {
    border-color: var(--gray-200);
}
