/* Page: help.html — Help & FAQ */

    /* Hide ticker/footer components on help page */
    #gl-ticker, .gl-ticker, #tickerFooter, .ticker-footer, #tickerPopup, .ticker-popup { display: none !important; }
    .help-layout { display: grid; grid-template-columns: 280px 1fr 360px; gap: var(--s5); min-height: calc(100vh - var(--nav-h) - 40px); padding-bottom: var(--s6); }
    @media(max-width:1100px) { .help-layout { grid-template-columns: 1fr 360px; } .help-left { display:none; } }
    @media(max-width:768px) { .help-layout { grid-template-columns: 1fr; } .help-right { display:none; } }

    /* Left panel — FAQ nav */
    .help-left { display: flex; flex-direction: column; gap: var(--s4); }
    .help-search { position: relative; }
    .help-search__input {
      width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: var(--s3) var(--s4) var(--s3) 36px;
      font-size: var(--t-sm); outline: none; transition: border-color .15s; background: var(--white);
    }
    .help-search__input:focus { border-color: var(--blue); }
    .help-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-m); }
    .help-cat { margin-bottom: var(--s2); }
    .help-cat__title {
      font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-m);
      padding: var(--s2) var(--s3); margin-bottom: var(--s1);
    }
    .help-faq-item {
      display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-md);
      font-size: var(--t-xs); color: var(--ink-3); cursor: pointer; transition: all .12s; border: none; background: none; width: 100%; text-align: left;
    }
    .help-faq-item:hover { background: var(--off); color: var(--ink); }
    .help-faq-item.active { background: rgba(37,99,235,.08); color: var(--blue); font-weight: 600; }
    .help-faq-item__icon { font-size: 14px; flex-shrink: 0; }

    /* Centre panel */
    .help-centre { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden; display: flex; flex-direction: column; }
    .help-centre__head { padding: var(--s5) var(--s6); border-bottom: 1px solid var(--border); }
    .help-centre__title { font-family: var(--font-d); font-size: var(--t-xl); font-weight: 700; color: var(--ink); }
    .help-centre__sub { font-size: var(--t-xs); color: var(--text-m); margin-top: 2px; }
    .help-centre__body { flex: 1; overflow-y: auto; padding: var(--s6); }
    .help-article { line-height: 1.7; color: var(--ink-3); }
    .help-article h3 { font-size: var(--t-md); font-weight: 700; color: var(--ink); margin: var(--s5) 0 var(--s2); }
    .help-article p { margin-bottom: var(--s3); font-size: var(--t-sm); }
    .help-article ul { padding-left: var(--s5); margin-bottom: var(--s3); }
    .help-article li { margin-bottom: var(--s2); font-size: var(--t-sm); }
    .help-article .step { display: flex; gap: 10px; margin-bottom: var(--s3); }
    .help-article .step-num {
      width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
      font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
    }

    /* Case audit card */
    .audit-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s4); margin-bottom: var(--s4); background: var(--off); }
    .audit-card__title { font-weight: 700; font-size: var(--t-sm); color: var(--ink); margin-bottom: var(--s2); }
    .audit-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: var(--t-xs); border-bottom: 1px solid var(--border); }
    .audit-row:last-child { border-bottom: none; }
    .audit-row__label { color: var(--text-m); }
    .audit-row__val { font-weight: 600; color: var(--ink); }

    /* Contact card */
    .contact-card { border: 2px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); text-align: center; background: var(--off); }
    .contact-card__icon { font-size: 2rem; margin-bottom: var(--s3); }
    .contact-card__title { font-weight: 700; color: var(--ink); margin-bottom: var(--s2); }
    .contact-card__sub { font-size: var(--t-xs); color: var(--text-m); line-height: 1.5; margin-bottom: var(--s4); }

    /* Right panel — AI chat */
    .help-right { display: flex; flex-direction: column; }
    .help-ai {
      background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2xl);
      overflow: hidden; display: flex; flex-direction: column; height: 100%; position: sticky; top: calc(var(--nav-h) + 20px);
      max-height: calc(100vh - var(--nav-h) - 40px);
    }
    .help-ai__head { background: var(--blue); padding: var(--s3) var(--s4); display: flex; align-items: center; gap: var(--s3); flex-shrink: 0; }
    .help-ai__ava { width: 34px; height: 34px; background: rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: #fff; }
    .help-ai__name { font-weight: 700; color: #fff; font-size: var(--t-sm); }
    .help-ai__status { font-size: var(--t-xs); color: rgba(255,255,255,.7); }
    .help-ai__msgs { flex: 1; overflow-y: auto; padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); background: var(--off); min-height: 0; }
    .help-ai__msgs::-webkit-scrollbar { width: 3px; }
    .help-ai__msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
    .help-bub {
      background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
      padding: var(--s3) var(--s4); font-size: var(--t-xs); line-height: 1.55; box-shadow: 0 1px 3px rgba(0,0,0,.04);
      animation: fadeUp .3s var(--ease) both; max-width: 95%;
    }
    .help-bub.user { background: var(--blue); color: #fff; border-color: var(--blue); align-self: flex-end; }
    .help-bub__meta { font-size: 10px; opacity: .5; margin-top: 4px; }
    .help-typing { display: flex; gap: 4px; padding: 10px 14px; align-self: flex-start; }
    .help-typing span { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: aiBounce .9s ease-in-out infinite; }
    .help-typing span:nth-child(2){animation-delay:.15s} .help-typing span:nth-child(3){animation-delay:.3s}
    @keyframes aiBounce { 0%,80%,100%{transform:scale(.55)} 40%{transform:scale(1)} }
    .help-ai__quick { padding: 6px 10px; display: flex; gap: 5px; flex-wrap: wrap; border-top: 1px solid var(--border); background: var(--white); flex-shrink: 0; }
    .help-qbtn {
      font-size: 10px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
      border: 1px solid rgba(37,99,235,.22); background: rgba(37,99,235,.05); color: var(--blue);
      cursor: pointer; white-space: nowrap; transition: all .14s;
    }
    .help-qbtn:hover { background: rgba(37,99,235,.12); }
    .help-ai__input { padding: var(--s3) var(--s4); border-top: 1px solid var(--border); display: flex; gap: var(--s2); background: var(--white); flex-shrink: 0; }
    .help-ai__field {
      flex: 1; border: 1.5px solid var(--border); border-radius: 20px; padding: var(--s2) var(--s3);
      font-size: var(--t-xs); outline: none; transition: border-color .15s; font-family: var(--font-b);
    }
    .help-ai__field:focus { border-color: var(--blue); }
    .help-ai__send { width: 30px; height: 30px; background: var(--blue); border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

    /* Case selector */
    .case-select { width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 8px 12px; font-size: var(--t-xs); margin-bottom: var(--s4); }
