
/* ============================================================
   PUBLIC HELP PAGE
   ============================================================ */
.help-hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0c4a6e 100%); padding: 60px 0 40px; text-align: center; border-bottom: 1px solid var(--border); }
.help-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.help-hero-sub { font-size: 1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 16px; }
.help-lang-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: var(--r-full); font-size: .8rem; color: var(--text-muted); max-width: 600px; }
.help-lang-note svg { width: 16px; height: 16px; }

.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 32px 0; max-width: 1200px; }

.help-sidebar { position: sticky; top: 20px; height: fit-content; }
.help-nav-sticky { display: flex; flex-direction: column; gap: 2px; }
.help-nav-link { padding: 8px 12px; border-radius: var(--r-sm); font-size: .82rem; color: var(--text-muted); text-decoration: none; transition: all var(--dur-fast); border-left: 2px solid transparent; }
.help-nav-link:hover { color: var(--text); background: var(--surface-2); }
.help-nav-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(16,185,129,.05); font-weight: 600; }

.help-content { max-width: 800px; min-width: 0; }
.help-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.help-section:last-of-type { border-bottom: none; }
.help-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.help-section h3 { font-size: 1.05rem; font-weight: 600; margin: 16px 0 8px; }
.help-section p { line-height: 1.7; color: var(--text); margin-bottom: 10px; }

/* Callouts */
.help-callout { padding: 14px 16px; border-radius: var(--r-md); margin: 12px 0; font-size: .85rem; line-height: 1.6; }
.help-callout strong { display: block; margin-bottom: 6px; }
.help-callout ul { margin-left: 20px; margin-top: 4px; }
.help-callout li { margin-bottom: 3px; }
.help-callout-info { background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.15); color: #93c5fd; }
.help-callout-warn { background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.15); color: #fbbf24; }

/* Stats */
.help-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.help-stat { text-align: center; padding: 16px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.hs-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.hs-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 640px) { .help-stats { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.help-steps { padding-left: 20px; margin: 10px 0; }
.help-steps li { margin-bottom: 6px; line-height: 1.6; font-size: .88rem; }

/* List */
.help-list { padding-left: 20px; margin: 10px 0; }
.help-list li { margin-bottom: 5px; line-height: 1.6; font-size: .88rem; }

/* Roles */
.help-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
.help-role-card { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.hr-icon { width: 32px; height: 32px; margin-bottom: 8px; color: var(--accent); }
.hr-icon svg { width: 32px; height: 32px; }
.hr-title { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.help-role-card p { font-size: .8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
@media (max-width: 640px) { .help-roles { grid-template-columns: 1fr; } }

/* Flow diagram */
.help-flow-diagram { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding: 16px 0; }
.flow-step { flex-shrink: 0; min-width: 110px; text-align: center; padding: 12px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.fs-num { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .8rem; margin: 0 auto 6px; }
.fs-title { font-weight: 700; font-size: .8rem; margin-bottom: 3px; }
.fs-desc { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }
.flow-arrow { color: var(--text-muted); font-size: 1.2rem; padding-top: 24px; flex-shrink: 0; }

/* AI features */
.help-ai-features { display: flex; flex-direction: column; gap: 16px; }
.ai-feature-block { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.ai-feature-block h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.ai-feature-block h3 svg { width: 18px; height: 18px; color: var(--accent); }
.help-example { margin-top: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .8rem; border-left: 3px solid var(--accent); }

/* Escalation */
.escalation-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.esc-level { padding: 14px; border-radius: var(--r-md); border: 1px solid var(--border); text-align: center; }
.esc-l1 { border-left: 3px solid #f59e0b; }
.esc-l2 { border-left: 3px solid #ef4444; }
.esc-l3 { border-left: 3px solid #8b5cf6; }
.el-badge { display: inline-block; padding: 4px 12px; border-radius: var(--r-full); font-weight: 800; font-size: .85rem; margin-bottom: 6px; background: var(--surface-2); }
.el-title { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.el-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 640px) { .escalation-levels { grid-template-columns: 1fr; } }

/* Help table */
.help-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .85rem; }
.help-table th, .help-table td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.help-table th { background: var(--surface-2); font-weight: 700; font-size: .8rem; }

/* SLA indicators */
.sla-indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }

/* FAQ */
.faq-accordion { display: flex; flex-direction: column; gap: 8px; }
.faq-item { padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { padding: 12px 14px; font-weight: 600; font-size: .88rem; cursor: pointer; list-style: none; display: flex; align-items: center; }
.faq-item summary::after { content: '+'; margin-left: auto; font-size: 1.2rem; color: var(--text-muted); transition: transform var(--dur-fast); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 14px 12px; font-size: .82rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Contact */
.help-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
.help-contact-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.hc-icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.hc-icon svg { width: 24px; height: 24px; }
.hc-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.hc-value { font-size: .88rem; font-weight: 600; }
@media (max-width: 640px) { .help-contact-grid { grid-template-columns: 1fr; } }

/* CTA */
.help-cta { text-align: center; padding: 40px 20px; margin-top: 20px; background: linear-gradient(135deg, rgba(16,185,129,.08), rgba(59,130,246,.08)); border-radius: var(--r-lg); }
.help-cta h2 { font-size: 1.5rem; margin-bottom: 8px; }
.help-cta p { color: var(--text-muted); margin-bottom: 16px; }
.help-cta-actions { display: flex; gap: 12px; justify-content: center; }

/* Responsive help layout */
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { display: none; }
}
