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

    :root {
      --charcoal: #1a1a2e;
      --slate: #2d2d44;
      --purple: #6c5ce7;
      --purple-light: #a29bfe;
      --purple-pale: #f0eeff;
      --purple-mid: #ede9fe;
      --white: #ffffff;
      --gray-50: #fafafa;
      --gray-100: #f8f9fa;
      --gray-200: #e9ecef;
      --gray-300: #dee2e6;
      --gray-400: #ced4da;
      --gray-500: #adb5bd;
      --gray-600: #6c757d;
      --gray-700: #495057;
      --gray-800: #343a40;
      --teal: #00b894;
      --teal-pale: #e8f8f5;
      --font: 'Plus Jakarta Sans', system-ui, sans-serif;
      --radius: 12px;
      --sidebar-width: 260px;
      --topbar-height: 60px;
    }

    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font);
      background: var(--gray-50);
      color: var(--gray-800);
      line-height: 1.65;
    }

    /* ─── TOP BAR ─── */
    .topbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--topbar-height);
      background: var(--white);
      border-bottom: 1px solid var(--gray-200);
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 0 1.5rem;
      z-index: 200;
    }
    .topbar-back {
      text-decoration: none;
      color: var(--gray-600);
      font-size: 0.8rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.35rem;
      white-space: nowrap;
      transition: color 0.15s;
    }
    .topbar-back:hover { color: var(--purple); }
    .topbar-divider {
      width: 1px;
      height: 20px;
      background: var(--gray-300);
      flex-shrink: 0;
    }
    .topbar-logo {
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: -0.3px;
      color: var(--charcoal);
      text-decoration: none;
      white-space: nowrap;
    }
    .topbar-logo span { color: var(--purple); }
    .topbar-badge {
      font-size: 0.7rem;
      font-weight: 700;
      background: var(--purple-mid);
      color: var(--purple);
      padding: 0.2rem 0.6rem;
      border-radius: 20px;
      white-space: nowrap;
    }
    .topbar-search {
      flex: 1;
      max-width: 480px;
      margin-left: auto;
      position: relative;
    }
    .topbar-search input {
      width: 100%;
      padding: 0.5rem 1rem 0.5rem 2.6rem;
      border: 1.5px solid var(--gray-300);
      border-radius: 8px;
      font-family: var(--font);
      font-size: 0.875rem;
      background: var(--gray-50);
      color: var(--gray-800);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .topbar-search input:focus {
      border-color: var(--purple);
      box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
      background: var(--white);
    }
    .topbar-search input::placeholder { color: var(--gray-500); }
    .search-icon {
      position: absolute;
      left: 0.8rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--gray-500);
      pointer-events: none;
    }
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.3rem;
      color: var(--gray-700);
      flex-shrink: 0;
    }

    /* ─── LAYOUT ─── */
    .layout {
      display: flex;
      margin-top: var(--topbar-height);
      min-height: calc(100vh - var(--topbar-height));
    }

    /* ─── SIDEBAR ─── */
    .sidebar {
      width: var(--sidebar-width);
      flex-shrink: 0;
      background: var(--white);
      border-right: 1px solid var(--gray-200);
      position: sticky;
      top: var(--topbar-height);
      height: calc(100vh - var(--topbar-height));
      overflow-y: auto;
      padding: 1.5rem 0;
    }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-track { background: transparent; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

    .sidebar-section { margin-bottom: 0.25rem; }
    .sidebar-heading {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--gray-500);
      padding: 0.6rem 1.25rem 0.3rem;
    }
    .sidebar-link {
      display: block;
      padding: 0.42rem 1.25rem;
      font-size: 0.835rem;
      font-weight: 500;
      color: var(--gray-700);
      text-decoration: none;
      border-left: 3px solid transparent;
      transition: all 0.12s;
      line-height: 1.4;
    }
    .sidebar-link:hover {
      background: var(--purple-pale);
      color: var(--purple);
      border-left-color: var(--purple-light);
    }
    .sidebar-link.active {
      background: var(--purple-pale);
      color: var(--purple);
      border-left-color: var(--purple);
      font-weight: 600;
    }
    .sidebar-cat-label {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1.25rem;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--charcoal);
      cursor: pointer;
      user-select: none;
      border-top: 1px solid var(--gray-200);
      margin-top: 0.25rem;
    }
    .sidebar-cat-label:first-child { border-top: none; margin-top: 0; }
    .sidebar-cat-label .cat-icon { display: inline-flex; align-items: center; color: var(--purple); }
    .sidebar-cat-label .cat-icon svg { width: 16px; height: 16px; }

    /* ─── MAIN CONTENT ─── */
    .main {
      flex: 1;
      min-width: 0;
      padding: 2.5rem 3rem;
      max-width: 860px;
    }

    /* ─── HERO BANNER ─── */
    .help-hero {
      background: linear-gradient(135deg, var(--purple) 0%, #8b7cf8 100%);
      border-radius: 16px;
      padding: 2rem 2.5rem;
      color: var(--white);
      margin-bottom: 2.5rem;
    }
    .help-hero h1 {
      font-size: 1.6rem;
      font-weight: 800;
      margin-bottom: 0.4rem;
    }
    .help-hero p {
      font-size: 0.95rem;
      opacity: 0.85;
      max-width: 500px;
    }

    /* ─── SECTION HEADERS ─── */
    .section-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--gray-200);
    }
    .section-header .icon-circle {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: var(--purple-pale);
      color: var(--purple);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .section-header .icon-circle svg { width: 22px; height: 22px; }
    .section-header h2 {
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--charcoal);
    }

    /* ─── ARTICLE CARDS ─── */
    .article-section {
      margin-bottom: 3.5rem;
      scroll-margin-top: calc(var(--topbar-height) + 1.5rem);
    }
    .article-grid {
      display: flex;
      flex-direction: column;
      gap: 1px;
      background: var(--gray-200);
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .article-card {
      background: var(--white);
      padding: 1.25rem 1.5rem;
      cursor: pointer;
      transition: background 0.12s;
    }
    .article-card:hover { background: var(--gray-50); }
    .article-card.expanded { background: var(--white); }
    .article-title-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }
    .article-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--charcoal);
      line-height: 1.4;
    }
    .article-card:hover .article-title { color: var(--purple); }
    .chevron {
      flex-shrink: 0;
      width: 20px;
      height: 20px;
      color: var(--gray-500);
      transition: transform 0.2s;
      margin-top: 1px;
    }
    .article-card.expanded .chevron { transform: rotate(180deg); color: var(--purple); }
    .article-body {
      display: none;
      padding-top: 1rem;
      border-top: 1px solid var(--gray-200);
      margin-top: 1rem;
      font-size: 0.875rem;
      color: var(--gray-700);
      line-height: 1.75;
    }
    .article-card.expanded .article-body { display: block; }
    .article-body p { margin-bottom: 0.85rem; }
    .article-body p:last-child { margin-bottom: 0; }
    .article-body ol, .article-body ul {
      padding-left: 1.4rem;
      margin-bottom: 0.85rem;
    }
    .article-body li { margin-bottom: 0.4rem; }
    .article-body strong { color: var(--charcoal); font-weight: 600; }

    /* Pro tip */
    .pro-tip {
      background: var(--teal-pale);
      border-left: 3px solid var(--teal);
      border-radius: 0 8px 8px 0;
      padding: 0.75rem 1rem;
      margin: 1rem 0;
      font-size: 0.825rem;
    }
    .pro-tip strong {
      color: #00856a !important;
      display: block;
      margin-bottom: 0.2rem;
    }

    /* Note / warning */
    .note {
      background: var(--purple-mid);
      border-left: 3px solid var(--purple);
      border-radius: 0 8px 8px 0;
      padding: 0.75rem 1rem;
      margin: 1rem 0;
      font-size: 0.825rem;
    }
    .note strong {
      color: var(--purple) !important;
      display: block;
      margin-bottom: 0.2rem;
    }

    /* Code / monospace */
    .article-body code {
      background: var(--gray-100);
      border: 1px solid var(--gray-200);
      border-radius: 4px;
      padding: 0.1em 0.4em;
      font-size: 0.8rem;
      font-family: 'Courier New', monospace;
      color: var(--purple);
    }

    /* ─── FAQ ─── */
    .faq-list {
      display: flex;
      flex-direction: column;
      gap: 0;
      border: 1px solid var(--gray-200);
      border-radius: var(--radius);
      overflow: hidden;
    }
    .faq-item {
      background: var(--white);
      border-bottom: 1px solid var(--gray-200);
    }
    .faq-item:last-child { border-bottom: none; }
    .faq-question {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.1rem 1.5rem;
      cursor: pointer;
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--charcoal);
      transition: background 0.12s;
      user-select: none;
    }
    .faq-question:hover { background: var(--gray-50); color: var(--purple); }
    .faq-question .chevron { transition: transform 0.2s; color: var(--gray-500); }
    .faq-item.open .faq-question { color: var(--purple); }
    .faq-item.open .faq-question .chevron { transform: rotate(180deg); color: var(--purple); }
    .faq-answer {
      display: none;
      padding: 0 1.5rem 1.25rem;
      font-size: 0.875rem;
      color: var(--gray-700);
      line-height: 1.75;
      border-top: 1px solid var(--gray-200);
      padding-top: 1rem;
    }
    .faq-item.open .faq-answer { display: block; }

    /* ─── SEARCH STATES ─── */
    .no-results {
      display: none;
      text-align: center;
      padding: 4rem 2rem;
      color: var(--gray-500);
    }
    .no-results .nr-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--purple); margin-bottom: 1rem; }
    .no-results .nr-icon svg { width: 48px; height: 48px; }
    .no-results h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-700); margin-bottom: 0.4rem; }
    .no-results p { font-size: 0.875rem; }
    .search-highlight {
      background: #fef08a;
      border-radius: 2px;
      padding: 0 1px;
    }
    .article-card.hidden, .article-section.all-hidden { display: none; }
    .section-heading-hidden { display: none; }

    /* ─── MOBILE SIDEBAR OVERLAY ─── */
    .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 150;
    }
    .sidebar-overlay.open { display: block; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 900px) {
      .main { padding: 2rem 1.75rem; }
    }

    @media (max-width: 700px) {
      .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 160;
        transition: left 0.25s ease;
        padding-top: calc(var(--topbar-height) + 0.75rem);
        width: 280px;
      }
      .sidebar.open { left: 0; }
      .mobile-menu-btn { display: flex; align-items: center; }
      .topbar-badge { display: none; }
      .main { padding: 1.5rem 1.25rem; }
      .help-hero { padding: 1.5rem; }
      .help-hero h1 { font-size: 1.3rem; }
      .topbar-search { max-width: none; }
    }

    @media (max-width: 480px) {
      .topbar-logo { display: none; }
      .topbar-divider { display: none; }
    }

    /* ─── SCROLL PADDING ─── */
    .article-section { scroll-margin-top: calc(var(--topbar-height) + 24px); }
