/*
   HabariChat Help Center
   Shared styles for all help pages. Builds on ../css/styles.css.
*/

:root {
    --page-accent: var(--accent-color);
    --page-accent-dark: #0099A3;
    --page-accent-bg: rgba(0,183,194,0.12);
    --page-accent-bg-subtle: rgba(0,183,194,0.08);
    --page-accent-border: rgba(0,183,194,0.15);
    --page-accent-hover: rgba(0,183,194,0.2);
    --page-accent-shadow: rgba(0,183,194,0.4);
    --page-accent-glow: rgba(0,183,194,0.05);
}

/* ===== PAGE SHELL ===== */
/* Darken the top of the page: the site's radial gradient is bright cyan at the very top,
   which washes out white headings. This overlay keeps the top readable, then fades to
   reveal the underlying brand gradient further down. */
.help-page {
    padding: 8.5rem 0 var(--spacing-xxl);
    background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(13,59,102,0.88) 200px, rgba(13,59,102,0) 560px);
}
.help-page .container { max-width: 1240px; }

.help-breadcrumb { font-size: 0.82rem; color: var(--text-light); margin-bottom: var(--spacing-lg); }
.help-breadcrumb a { color: var(--page-accent); font-weight: 600; }
.help-breadcrumb a:hover { text-decoration: underline; }
.help-breadcrumb i { font-size: 0.7rem; margin: 0 0.4rem; opacity: 0.6; }

/* ===== LAYOUT (3 columns: nav · content · on-this-page) ===== */
.help-layout { display: flex; align-items: flex-start; gap: var(--spacing-xl); }

/* ===== SIDEBAR ===== */
.help-sidebar { flex: 0 0 255px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; }
.help-sidebar::-webkit-scrollbar { width: 6px; }
.help-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* Sidebar search */
.help-search { position: relative; margin-bottom: var(--spacing-lg); }
.help-search > i { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--primary-color); font-size: 0.85rem; }
.help-search input {
    width: 100%; padding: 0.7rem 0.9rem 0.7rem 2.4rem;
    border: none; border-radius: var(--border-radius-full);
    font-family: var(--body-font); font-size: 0.9rem; color: var(--primary-color);
    background: #fff; box-shadow: var(--shadow-md); outline: none;
}
.help-search input::placeholder { color: #7a8a99; }
/* Results dropdown */
.help-search-results {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-md); box-shadow: var(--shadow-xl);
    max-height: 320px; overflow-y: auto; padding: 6px;
}
.help-search-results.open { display: block; }
.help-search-results a { display: block; padding: 0.55rem 0.7rem; border-radius: var(--border-radius-sm); color: var(--text-medium); font-size: 0.85rem; }
.help-search-results a:hover, .help-search-results a.kbd-active { background: var(--page-accent-bg); color: #fff; }
.help-search-results a .res-topic { display: block; font-size: 0.7rem; color: var(--page-accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1px; }
.help-search-results .res-empty { padding: 0.7rem; color: var(--text-light); font-size: 0.85rem; text-align: center; }

.help-sidebar .sidebar-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); font-weight: 700; margin: 0 0 var(--spacing-sm); padding-left: 0.9rem; }

/* Nav list */
.help-nav-list { display: flex; flex-direction: column; gap: 1px; }
.help-nav-topic > .help-nav-link {
    display: flex; align-items: center; gap: 0.7rem;
    padding: 0.62rem 0.9rem; border-radius: var(--border-radius-md);
    color: var(--text-medium); font-size: 0.9rem; font-weight: 600;
    transition: all var(--transition-fast); border-left: 3px solid transparent;
}
.help-nav-topic > .help-nav-link i { width: 18px; text-align: center; color: var(--page-accent); font-size: 0.95rem; }
.help-nav-topic > .help-nav-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.help-nav-topic.active > .help-nav-link { background: var(--page-accent-bg); color: #fff; border-left-color: var(--page-accent); }

/* Subtopics (only shown for the active/current topic) */
.help-nav-sub { display: none; flex-direction: column; margin: 2px 0 6px 0; padding-left: 2.45rem; gap: 1px; }
.help-nav-topic.active > .help-nav-sub { display: flex; }
.help-nav-sub a {
    display: block; padding: 0.4rem 0.7rem; border-radius: var(--border-radius-sm);
    color: var(--text-light); font-size: 0.84rem; font-weight: 500; line-height: 1.35;
    border-left: 2px solid rgba(255,255,255,0.08); transition: all var(--transition-fast);
}
.help-nav-sub a:hover { color: #fff; border-left-color: var(--page-accent); }
.help-nav-sub a.active,
.help-nav-sub a.current-page { color: var(--page-accent); border-left-color: var(--page-accent); font-weight: 600; }

/* A subtopic that owns a nested option group: link + collapse toggle on one row */
.help-nav-sub .sub-row { display: flex; align-items: center; }
.help-nav-sub .sub-row > a { flex: 1 1 auto; }
.subsub-toggle {
    flex: 0 0 auto; background: none; border: 0; cursor: pointer;
    color: var(--text-light); padding: 0.35rem 0.5rem; line-height: 1;
    border-radius: var(--border-radius-sm); transition: all var(--transition-fast);
}
.subsub-toggle i { font-size: 0.72rem; transition: transform var(--transition-fast); }
.subsub-toggle:hover { color: #fff; }
.help-nav-sub .has-children.open .subsub-toggle i { transform: rotate(180deg); }

/* Options nested under a subtopic (e.g. the WhatsApp sign-up paths).
   Collapsed by default; revealed only when the reader opens the group. */
.help-nav-subsub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 4px; padding-left: 0.9rem; }
.help-nav-sub .has-children.open > .help-nav-subsub { display: flex; }
.help-nav-subsub a {
    display: block; padding: 0.32rem 0.7rem; border-radius: var(--border-radius-sm);
    color: var(--text-light); font-size: 0.8rem; font-weight: 500; line-height: 1.3;
    border-left: 2px solid rgba(255,255,255,0.08); transition: all var(--transition-fast);
}
.help-nav-subsub a:hover { color: #fff; border-left-color: var(--page-accent); }
.help-nav-subsub a.active,
.help-nav-subsub a.current-page { color: var(--page-accent); border-left-color: var(--page-accent); font-weight: 600; }

/* Mobile sidebar toggle */
.help-nav-toggle { display: none; }

/* ===== MAIN COLUMN ===== */
.help-main { flex: 1 1 auto; min-width: 0; max-width: 100%; }

/* ===== RIGHT RAIL: "ON THIS PAGE" (auto-built by help.js) ===== */
.help-toc { flex: 0 0 190px; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.help-toc .toc-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); font-weight: 700; margin-bottom: var(--spacing-sm); padding-left: 0.8rem; }
.help-toc ul { display: flex; flex-direction: column; gap: 1px; }
.help-toc a { display: block; padding: 0.32rem 0.8rem; font-size: 0.82rem; color: var(--text-light); border-left: 2px solid rgba(255,255,255,0.08); line-height: 1.35; transition: all var(--transition-fast); }
.help-toc a:hover { color: #fff; }
.help-toc a.active { color: var(--page-accent); border-left-color: var(--page-accent); font-weight: 600; }
.help-toc a.sub { padding-left: 1.6rem; font-size: 0.78rem; }
/* Title banner - dark so the white heading stays legible whatever sits behind it.
   NOTE: this is a <header> element, so we must cancel the global `header { position:fixed }`
   rule from styles.css, otherwise the title pins itself full-width to the top of the page. */
.help-main-head {
    position: static;
    width: auto;
    top: auto;
    left: auto;
    box-shadow: none;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2e52 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 4px solid var(--page-accent);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}
.help-main-head .section-label { margin-bottom: var(--spacing-xs); }
.help-main-head h1 { font-size: 2rem; color: #fff; margin-bottom: var(--spacing-sm); }
.help-main-head p.lead { color: var(--text-medium); font-size: 1rem; max-width: 760px; margin-bottom: 0; }

.help-section { margin-bottom: var(--spacing-xxl); scroll-margin-top: 96px; }
.help-section > h2 { font-size: 1.45rem; color: #fff; margin-bottom: var(--spacing-md); display: flex; align-items: center; gap: 0.6rem; }
.help-section > h2 .anchor-link { opacity: 0; font-size: 0.85rem; color: var(--page-accent); transition: opacity var(--transition-fast); }
.help-section > h2:hover .anchor-link { opacity: 1; }
.help-section > p { color: var(--text-medium); font-size: 0.95rem; margin-bottom: var(--spacing-md); max-width: 820px; }
.help-section ol, .help-section > ul { color: var(--text-medium); margin: var(--spacing-sm) 0 var(--spacing-md) 1.3rem; max-width: 820px; }
.help-section li { margin-bottom: 0.4rem; list-style: disc; }
.help-section ol li { list-style: decimal; }
.help-section strong { color: #fff; }
.help-section a:not(.btn-sim):not(.help-nav-link) { color: var(--page-accent); font-weight: 600; }
.help-section a:not(.btn-sim):not(.help-nav-link):hover { text-decoration: underline; }

/* Sub-sections (h3) within a section */
.help-section h3 { font-size: 1.08rem; color: #fff; margin: var(--spacing-lg) 0 var(--spacing-sm); }

/* "NEW" badge for recently-added reports */
.new-badge { display: inline-block; background: var(--success-color); color: #fff; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; margin-left: 7px; }

/* "What you see / How to use it" labels inside report entries */
.help-section p .lbl-what, .help-section p .lbl-use { color: var(--page-accent); font-weight: 700; }

/* Callout note + variants (info / tip / warn) */
.note {
    margin: var(--spacing-md) 0; padding: 0.8rem 1.1rem 0.8rem 2.6rem; position: relative;
    background: var(--page-accent-bg-subtle); border-left: 3px solid var(--page-accent);
    border-radius: var(--border-radius-sm); font-size: 0.88rem; color: var(--text-medium); max-width: 820px;
}
.note strong { color: #fff; }
.note::before { content: '\f05a'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0.95rem; top: 0.85rem; color: var(--page-accent); font-size: 0.95rem; }
.note.tip { background: rgba(16,185,129,0.08); border-left-color: var(--success-color); }
.note.tip::before { content: '\f0eb'; color: var(--success-color); }
.note.warn { background: rgba(245,158,11,0.08); border-left-color: var(--warning-color); }
.note.warn::before { content: '\f071'; color: var(--warning-color); }

/* Prerequisites box */
.help-prereq {
    margin: var(--spacing-md) 0 var(--spacing-lg); padding: var(--spacing-lg) var(--spacing-xl);
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--border-radius-md); max-width: 820px;
}
.help-prereq .prereq-head { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 0.95rem; margin-bottom: var(--spacing-sm); }
.help-prereq .prereq-head i { color: var(--page-accent); }
.help-prereq ul { margin: 0 0 0 1.2rem; }
.help-prereq li { color: var(--text-medium); font-size: 0.88rem; margin-bottom: 0.3rem; list-style: disc; }
.help-prereq li strong { color: #fff; }

/* Numbered steps with sub-steps */
.help-section ol ul, .help-section ol ol { margin-top: 0.35rem; margin-bottom: 0.5rem; }
.help-section ol ul li { list-style: circle; }

/* Tables */
.help-table-wrap { overflow-x: auto; margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 820px; }
.help-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; background: var(--primary-dark); border-radius: var(--border-radius-md); overflow: hidden; }
.help-table th, .help-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.help-table thead th { background: rgba(255,255,255,0.04); color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.help-table tbody td { color: var(--text-medium); }
.help-table tbody td:first-child { color: #fff; font-weight: 600; }
.help-table tbody tr:last-child td { border-bottom: none; }
.help-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.help-table .yes { color: var(--success-color); font-weight: 700; }
.help-table .no { color: var(--text-light); }

/* Related articles */
.related-links { margin-top: var(--spacing-xl); padding: var(--spacing-lg) var(--spacing-xl); background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--border-radius-md); max-width: 820px; }
.related-links .rl-head { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 0.95rem; margin-bottom: var(--spacing-sm); }
.related-links ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 0; }
.related-links li { list-style: none; }
.related-links a { color: var(--page-accent); font-size: 0.88rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; }
.related-links a::before { content: '\f0a9'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.75rem; opacity: 0.7; }
.related-links a:hover { text-decoration: underline; }

/* WhatsApp journey: 3 link cards shared on the connect + marketing pages */
.wa-journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 1.3rem 0 1.7rem; max-width: 820px; }
.wa-journey a {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1rem 1.1rem; border-radius: var(--border-radius-md);
    background: var(--primary-dark); border: 1px solid var(--page-accent-border);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    color: #fff; font-weight: 600; transition: all var(--transition-fast);
}
.wa-journey a:hover { border-color: var(--page-accent); background: var(--page-accent-bg); transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.wa-journey a > i { color: var(--page-accent); font-size: 1.25rem; margin-bottom: 0.15rem; }
.wa-journey a .wa-step { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--page-accent); font-weight: 700; }
.wa-journey a small { font-weight: 500; color: var(--text-light); font-size: 0.8rem; line-height: 1.4; }
@media (max-width: 700px) { .wa-journey { grid-template-columns: 1fr; } }

/* ===== DEMO MODAL (plays simulations in a popup iframe) ===== */
.help-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 3vh 3vw; }
.help-modal.open { display: flex; }
.help-modal-backdrop { position: absolute; inset: 0; background: rgba(5,20,40,0.82); backdrop-filter: blur(3px); }
.help-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 1150px; height: 92vh; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; overflow: hidden; }
.help-modal-bar { display: flex; align-items: center; gap: var(--spacing-md); padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); background: #0a2e52; flex-shrink: 0; }
.help-modal-title { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 0.95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-modal-open { color: var(--page-accent); font-size: 0.82rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.help-modal-open:hover { text-decoration: underline; }
.help-modal-close { background: rgba(255,255,255,0.08); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); flex-shrink: 0; }
.help-modal-close:hover { background: var(--page-accent); }
.help-modal-body { flex: 1; position: relative; background: #f4f7fa; min-height: 0; }
.help-modal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.6rem; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; }
.help-modal-loading i { color: var(--page-accent); }
.help-modal-body iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 576px) {
    .help-modal { padding: 0; }
    .help-modal-dialog { height: 100vh; max-width: none; border-radius: 0; border: none; }
}

/* ===== FIGURES ===== */
.help-figure { margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 820px; }
.help-figure .frame {
    border-radius: var(--border-radius-lg); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 6px rgba(0,183,194,0.06);
    background: #0a2e52;
}
.help-figure .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.07); }
.help-figure .chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.help-figure .chrome span:nth-child(1) { background: #ff5f57; }
.help-figure .chrome span:nth-child(2) { background: #febc2e; }
.help-figure .chrome span:nth-child(3) { background: #28c840; }
.help-figure img { display: block; width: 100%; }
.help-figure.phone { max-width: 280px; }
.help-figure.phone .frame { border: none; box-shadow: 0 20px 50px rgba(0,0,0,0.35); border-radius: 24px; }
.help-figure figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--text-light); font-style: italic; }

/* ===== SIMULATION / BLOG CALLOUT ===== */
.sim-callout {
    display: flex; align-items: center; gap: var(--spacing-lg); flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(0,183,194,0.15), rgba(0,183,194,0.03));
    border: 1px solid var(--page-accent-border); border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl); margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 820px;
}
.sim-callout .sim-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--page-accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sim-callout .sim-icon i { color: #fff; font-size: 1.2rem; }
.sim-callout .sim-text { flex: 1; min-width: 180px; }
.sim-callout .sim-text strong { color: #fff; display: block; font-size: 0.98rem; }
.sim-callout .sim-text span { color: var(--text-medium); font-size: 0.85rem; }
.sim-callout .btn-sim { background: var(--page-accent); color: #fff; padding: 0.6rem 1.4rem; border-radius: var(--border-radius-full); font-weight: 600; font-size: 0.88rem; white-space: nowrap; transition: all var(--transition-normal); display: inline-flex; align-items: center; gap: 0.45rem; }
.sim-callout .btn-sim:hover { background: var(--page-accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px var(--page-accent-shadow); color: #fff; }
.sim-callout.blog { background: linear-gradient(135deg, rgba(13,59,102,0.6), rgba(13,59,102,0.2)); border-color: rgba(255,255,255,0.08); }
.sim-callout.blog .sim-icon { background: var(--primary-light); }
.sim-callout.blog .btn-sim { background: transparent; border: 1.5px solid var(--page-accent); color: var(--page-accent); }
.sim-callout.blog .btn-sim:hover { background: var(--page-accent); color: #fff; }

/* ===== FAQ ITEMS ===== */
.faq-item { background: var(--primary-dark); border-radius: var(--border-radius-lg); padding: var(--spacing-md) var(--spacing-lg); border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: all var(--transition-fast); margin-bottom: var(--spacing-md); max-width: 820px; }
.faq-item:hover { border-color: var(--page-accent-hover); }
.faq-item .faq-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: #fff; font-weight: 600; font-size: 0.98rem; }
.faq-item .faq-question i { color: var(--page-accent); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item .faq-answer { color: var(--text-medium); font-size: 0.9rem; margin-top: var(--spacing-md); display: none; line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-item .faq-answer ol, .faq-item .faq-answer ul { margin: var(--spacing-sm) 0 var(--spacing-md) 1.2rem; }
.faq-item .faq-answer li { margin-bottom: 0.35rem; list-style: disc; }
.faq-item .faq-answer ol li { list-style: decimal; }
.faq-item .faq-answer strong { color: #fff; }
.faq-item .faq-answer a { color: var(--page-accent); font-weight: 600; }
.faq-item .faq-answer a:hover { text-decoration: underline; }
.faq-item .faq-answer p { margin-bottom: var(--spacing-sm); }
/* Two-column FAQ grid; align-items:start stops short collapsed cards stretching to a taller neighbour */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); align-items: start; max-width: 820px; margin-bottom: var(--spacing-md); }
.faq-grid .faq-item { max-width: none; width: 100%; margin-bottom: 0; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }

/* ===== QUICK-START STEPS ===== */
.quickstart { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-lg); margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 820px; }
.qs-step { position: relative; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--border-radius-lg); padding: var(--spacing-xl) var(--spacing-lg); text-align: center; }
.qs-step .qs-num { width: 40px; height: 40px; border-radius: 50%; background: var(--page-accent); color: #fff; font-weight: 800; font-family: var(--heading-font); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--spacing-md); font-size: 1.1rem; }
.qs-step .qs-ic { font-size: 1.6rem; color: var(--page-accent); margin-bottom: var(--spacing-sm); }
.qs-step h4 { color: #fff; font-size: 1rem; margin-bottom: 0.3rem; }
.qs-step p { color: var(--text-medium); font-size: 0.85rem; margin-bottom: 0; }
.qs-step:not(:last-child)::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -19px; top: 50%; transform: translateY(-50%); color: var(--page-accent); font-size: 1rem; z-index: 2; }

/* ===== CHANNEL CHIPS ===== */
.channel-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 820px; }
.channel-chips .chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--border-radius-full); background: var(--page-accent-bg-subtle); border: 1px solid var(--page-accent-border); color: #fff; font-size: 0.85rem; font-weight: 500; }
.channel-chips .chip i { color: var(--page-accent); }

/* ===== PAGER (prev / next) ===== */
.help-pager { display: flex; justify-content: space-between; gap: var(--spacing-md); margin-top: var(--spacing-xxl); padding-top: var(--spacing-lg); border-top: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
.help-pager a { flex: 1; min-width: 200px; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--border-radius-md); padding: 0.9rem 1.2rem; transition: all var(--transition-fast); }
.help-pager a:hover { border-color: var(--page-accent-hover); transform: translateY(-2px); }
.help-pager a span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 2px; }
.help-pager a strong { color: #fff; font-size: 0.95rem; }
.help-pager a.next { text-align: right; }

/* ===== INDEX: HERO + TOPIC GRID ===== */
.help-home-hero { text-align: center; padding-bottom: var(--spacing-xl); }
.help-home-hero h1 { font-size: 2.6rem; color: #fff; margin-bottom: var(--spacing-md); }
.help-home-hero h1 span { color: var(--page-accent); }
.help-home-hero p.lead { font-size: 1.1rem; color: var(--text-medium); max-width: 620px; margin: 0 auto var(--spacing-lg); }
.help-home-hero .help-search { max-width: 560px; margin: 0 auto; }
.help-home-hero .help-search > i { font-size: 1rem; left: 1.1rem; }
.help-home-hero .help-search input { padding: 1rem 1.1rem 1rem 2.8rem; font-size: 1rem; box-shadow: var(--shadow-lg); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--spacing-lg); }
.topic-card {
    display: block; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--border-radius-lg); padding: var(--spacing-xl);
    transition: transform var(--transition-normal), border-color var(--transition-fast);
}
.topic-card:hover { transform: translateY(-5px); border-color: var(--page-accent-hover); }
.topic-card .tc-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--page-accent-bg); display: flex; align-items: center; justify-content: center; margin-bottom: var(--spacing-md); }
.topic-card .tc-icon i { font-size: 1.3rem; color: var(--page-accent); }
.topic-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.4rem; }
.topic-card p { color: var(--text-medium); font-size: 0.88rem; margin-bottom: var(--spacing-md); }
.topic-card .tc-links { display: flex; flex-direction: column; gap: 2px; }
.topic-card .tc-links a { color: var(--text-light); font-size: 0.82rem; padding: 1px 0; }
.topic-card .tc-links a:hover { color: var(--page-accent); }
.topic-card .tc-more { color: var(--page-accent); font-weight: 600; font-size: 0.82rem; margin-top: 0.4rem; display: inline-block; }

/* ===== CONTACT STRIP ===== */
.help-contact { background: radial-gradient(circle at center, var(--primary-color) 0%, var(--primary-dark) 100%); padding: var(--spacing-xxl) 0; margin-top: var(--spacing-xxl); }
.help-contact .section-header { margin-bottom: var(--spacing-xl); }
.help-contact h2 { color: #fff; }
.help-contact .section-header p { color: var(--text-medium); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--spacing-lg); max-width: 1000px; margin: 0 auto; }
.contact-card { background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--border-radius-lg); padding: var(--spacing-xl); text-align: center; transition: transform var(--transition-normal), border-color var(--transition-fast); }
.contact-card:hover { transform: translateY(-5px); border-color: var(--page-accent-hover); }
.contact-card .c-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--page-accent-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--spacing-md); }
.contact-card .c-icon i { font-size: 1.3rem; color: var(--page-accent); }
.contact-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.4rem; }
.contact-card p { color: var(--text-medium); font-size: 0.85rem; margin-bottom: var(--spacing-md); }
.contact-card a.c-link { color: var(--page-accent); font-weight: 600; font-size: 0.95rem; word-break: break-word; }
.contact-card a.c-link:hover { text-decoration: underline; }

/* ===== UI MOCKUPS (placeholders - built in CSS, swap for real screenshots later) ===== */
.help-figure.mockup .frame { background: #0a2e52; position: relative; }
.mock-badge {
    position: absolute; top: 10px; right: 10px; z-index: 6;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px;
    border-radius: var(--border-radius-full); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(2px);
}
.mock { position: relative; background: #0d1f33; color: #cfe0ee; font-size: 0.7rem; }
.mock-app { display: flex; min-height: 320px; }
.mock-nav { flex: 0 0 134px; background: #0a2e52; border-right: 1px solid rgba(255,255,255,0.06); padding: 12px 8px; display: flex; flex-direction: column; gap: 3px; }
.mock-brand { display: flex; align-items: center; gap: 6px; color: #fff; font-family: var(--heading-font); font-weight: 700; font-size: 0.72rem; margin-bottom: 10px; padding: 0 4px; }
.mock-brand i { color: var(--page-accent); }
.mock-navitem { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; color: rgba(255,255,255,0.55); }
.mock-navitem i { width: 14px; text-align: center; font-size: 0.72rem; }
.mock-navitem.active { background: var(--page-accent-bg); color: #fff; }
.mock-navitem.active i { color: var(--page-accent); }
.mock-body { flex: 1; padding: 14px 16px; min-width: 0; }
.mock-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mock-title { color: #fff; font-family: var(--heading-font); font-weight: 700; font-size: 0.85rem; }
.mock-row { display: flex; gap: 8px; }
.mock-col { flex: 1; min-width: 0; }
.mock-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.mock-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); margin: 5px 0; }
.mock-line.w20 { width: 20%; } .mock-line.w30 { width: 30%; } .mock-line.w40 { width: 40%; } .mock-line.w50 { width: 50%; }
.mock-line.w60 { width: 60%; } .mock-line.w70 { width: 70%; } .mock-line.w80 { width: 80%; } .mock-line.w90 { width: 90%; }
.mock-line.strong { background: rgba(255,255,255,0.30); height: 9px; }
.mock-line.accent { background: var(--page-accent); opacity: 0.85; }
.mock-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--page-accent), var(--primary-light)); flex-shrink: 0; }
.mock-listitem { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 6px; }
.mock-listitem.active { background: rgba(0,183,194,0.10); }
.mock-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--page-accent); color: #fff; font-weight: 600; font-size: 0.66rem; padding: 5px 12px; border-radius: 6px; }
.mock-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #fff; }
.mock-field { border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 7px 9px; color: rgba(255,255,255,0.5); margin-bottom: 8px; font-size: 0.66rem; }
.mock-chip { display: inline-block; background: var(--page-accent-bg); color: var(--page-accent); border: 1px solid var(--page-accent-border); border-radius: 999px; padding: 2px 9px; font-size: 0.62rem; font-weight: 600; margin: 0 4px 4px 0; }
.mock-toggle { width: 30px; height: 16px; border-radius: 999px; background: var(--page-accent); position: relative; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.mock-toggle::after { content: ''; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.mock-toggle.off { background: rgba(255,255,255,0.2); }
.mock-toggle.off::after { left: 2px; right: auto; }
.mock-bubble { max-width: 76%; padding: 7px 10px; border-radius: 10px; margin-bottom: 7px; background: rgba(255,255,255,0.08); color: #dfeaf3; line-height: 1.4; }
.mock-bubble.out { margin-left: auto; background: rgba(0,183,194,0.18); border-radius: 10px 10px 0 10px; }
.mock-bubble.in { border-radius: 0 10px 10px 10px; }
.mock-statrow { display: flex; gap: 8px; margin-bottom: 10px; }
.mock-stat { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 9px 10px; }
.mock-stat .num { color: #fff; font-family: var(--heading-font); font-weight: 800; font-size: 1rem; }
.mock-stat .lbl { color: rgba(255,255,255,0.5); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mock-chart { height: 56px; border-radius: 6px; background:
    linear-gradient(to top, rgba(0,183,194,0.25), rgba(0,183,194,0) 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 28px);
    border-bottom: 2px solid var(--page-accent); }
.mock-step { display: flex; align-items: center; gap: 8px; flex: 1; }
.mock-step .dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.66rem; flex-shrink: 0; }
.mock-step.done .dot, .mock-step.current .dot { background: var(--page-accent); color: #fff; }
.mock-step .bar { flex: 1; height: 2px; background: rgba(255,255,255,0.12); }
.mock-step.done .bar { background: var(--page-accent); }
/* Empty placeholder variant (when even a sketch isn't worth it) */
.mock-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; border: 2px dashed rgba(255,255,255,0.15); border-radius: var(--border-radius-md); color: var(--text-light); text-align: center; padding: 20px; }
.mock-placeholder i { font-size: 1.8rem; color: var(--page-accent); }
.mock-placeholder .ph-title { color: #fff; font-weight: 600; font-size: 0.9rem; }
.mock-placeholder .ph-sub { font-size: 0.78rem; }
.mock-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-opt { flex: 1 1 28%; min-width: 0; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 12px 8px; text-align: center; }
.mock-opt i { font-size: 1.15rem; }
.mock-opt .mock-line { margin: 7px auto 0; }
.mock-opt.sel { border-color: var(--page-accent); background: var(--page-accent-bg); }

/* ===== WHATSAPP MARKETING SCREENSHOTS (mirror the simulation's light UI) ===== */
.help-figure.shot .frame { background: #0f172a; }
.shot-body { display: flex; background: #f1f5f9; color: #0f172a; font-size: 11px; line-height: 1.4; min-height: 300px; }
.shot-body * { box-sizing: border-box; }

/* App sidebar */
.shot-side { flex: 0 0 152px; background: #1e293b; color: #fff; display: flex; flex-direction: column; padding: 10px 8px; }
.shot-brand { display: flex; align-items: center; gap: 7px; padding: 2px 4px 10px; border-bottom: 1px solid #334155; margin-bottom: 9px; }
.shot-brand .lg { width: 26px; height: 26px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; color: #00B7C2; font-size: 13px; flex-shrink: 0; }
.shot-brand b { font-size: 12px; font-weight: 700; display: block; line-height: 1.2; }
.shot-brand small { color: #94a3b8; font-size: 8.5px; }
.shot-newchat { background: #00B7C2; color: #fff; border-radius: 7px; padding: 7px; display: flex; align-items: center; gap: 6px; justify-content: center; font-weight: 600; font-size: 11px; margin-bottom: 10px; }
.shot-navlabel { color: #64748b; font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 6px; margin-bottom: 5px; }
.shot-nav a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: #cbd5e1; margin-bottom: 2px; }
.shot-nav a i { width: 13px; text-align: center; color: #94a3b8; font-size: 11px; }
.shot-nav a.active { background: #00B7C2; color: #fff; }
.shot-nav a.active i { color: #fff; }
.shot-side .logout { margin-top: auto; color: #f87171; padding: 6px 8px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #334155; }
.shot-side .logout i { width: 13px; text-align: center; }

/* Main column */
.shot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f1f5f9; }
.shot-top { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 9px 14px; display: flex; align-items: center; justify-content: space-between; }
.shot-top .b { display: flex; align-items: center; gap: 8px; }
.shot-top .lg { width: 26px; height: 26px; border-radius: 6px; background: #fff; border: 1px solid #eef2f6; display: flex; align-items: center; justify-content: center; color: #00B7C2; font-size: 12px; }
.shot-top .t-title { font-weight: 700; color: #0f172a; font-size: 12px; }
.shot-top .t-sub { color: #64748b; font-size: 9px; }
.shot-org { border: 1px solid #e2e8f0; border-radius: 7px; padding: 4px 9px; color: #64748b; font-size: 9.5px; }
.shot-ava { width: 24px; height: 24px; border-radius: 50%; background: #f59e0b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; margin-left: 8px; }
.shot-content { padding: 14px; overflow: hidden; }

/* Tabs */
.shot-tabs { display: flex; gap: 16px; border-bottom: 1px solid #e2e8f0; margin-bottom: 14px; overflow: hidden; }
.shot-tabs span { padding: 8px 1px; color: #64748b; font-weight: 500; display: flex; align-items: center; gap: 5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.shot-tabs span i { font-size: 10px; }
.shot-tabs span.active { color: #00B7C2; border-bottom-color: #00B7C2; }

/* Overview header + button */
.shot-ovh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.shot-ovh .h { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: #0f172a; }
.shot-ovh .h .m { color: #94a3b8; font-weight: 400; font-size: 10px; }
.shot-btn { background: #00B7C2; color: #fff; border-radius: 7px; padding: 7px 12px; font-weight: 600; font-size: 10.5px; display: inline-flex; align-items: center; gap: 6px; }
.shot-btn.ghost { background: #fff; border: 1px solid #cbd5e1; color: #334155; }

/* Stat cards */
.shot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
.shot-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px; }
.shot-stat .lbl { color: #64748b; font-size: 8.5px; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.shot-stat .num { font-size: 18px; font-weight: 800; color: #0f172a; }
.shot-stat .sub { color: #94a3b8; font-size: 8.5px; }

/* Card + table */
.shot-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.shot-card .ch { padding: 11px 13px; border-bottom: 1px solid #f1f5f9; }
.shot-card .ch b { font-size: 12px; color: #0f172a; }
.shot-card .ch p { color: #64748b; font-size: 9.5px; margin: 2px 0 0; }
table.shot-tbl { width: 100%; border-collapse: collapse; }
table.shot-tbl th { text-align: left; padding: 8px 12px; color: #64748b; font-size: 8px; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #f1f5f9; font-weight: 600; }
table.shot-tbl td { padding: 9px 12px; border-bottom: 1px solid #f8fafc; color: #475569; font-size: 10px; vertical-align: top; }
table.shot-tbl tr:last-child td { border-bottom: none; }
table.shot-tbl .cname { color: #00B7C2; font-weight: 600; }
table.shot-tbl .cdesc { color: #94a3b8; font-size: 8.5px; }
.shot-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.shot-pill .d { width: 5px; height: 5px; border-radius: 50%; }
.shot-pill.green { background: #dcfce7; color: #15803d; } .shot-pill.green .d { background: #22c55e; }
.shot-pill.blue { background: #dbeafe; color: #1d4ed8; } .shot-pill.blue .d { background: #3b82f6; }
.shot-pos { color: #16a34a; } .shot-mut { color: #94a3b8; }

/* Wizard modal */
.shot-wiz { background: #fff; display: flex; flex-direction: column; min-height: 320px; }
.shot-wiz .wh { background: #00B7C2; color: #fff; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; }
.shot-wiz .wh .lg { width: 28px; height: 28px; border-radius: 7px; background: #fff; color: #00B7C2; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.shot-wiz .wh .ttl { font-size: 13px; font-weight: 700; }
.shot-wiz .wh .sub { font-size: 9px; color: rgba(255,255,255,0.8); }
.shot-wiz .wh .x { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; }
.shot-steps { display: flex; gap: 20px; padding: 9px 14px; border-bottom: 1px solid #f1f5f9; flex-wrap: wrap; }
.shot-steps .s { display: flex; align-items: center; gap: 6px; color: #94a3b8; font-size: 10px; }
.shot-steps .s .n { width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; }
.shot-steps .s.active { color: #0891b2; } .shot-steps .s.active .n { background: #00B7C2; color: #fff; }
.shot-steps .s.done { color: #0f172a; } .shot-steps .s.done .n { background: #0f172a; color: #fff; }
.shot-wbody { display: flex; flex: 1; }
.shot-form { flex: 1; padding: 14px; min-width: 0; }
.shot-form h4 { font-size: 13px; font-weight: 700; color: #0f172a; margin: 0 0 3px; }
.shot-form p.d { color: #64748b; font-size: 9.5px; margin: 0 0 12px; }
.shot-label { font-size: 10px; font-weight: 600; color: #334155; margin-bottom: 4px; display: block; }
.shot-input { border: 1px solid #cbd5e1; border-radius: 7px; padding: 7px 9px; color: #0f172a; font-size: 10px; background: #fff; margin-bottom: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shot-input .ph { color: #94a3b8; }
.shot-input i { color: #94a3b8; }
.shot-hint { color: #94a3b8; font-size: 8.5px; margin: 0 0 12px; }
.shot-phone { flex: 0 0 210px; background: #dde3ea; display: flex; align-items: center; justify-content: center; padding: 14px; border-left: 1px solid #e2e8f0; }
.shot-foot { border-top: 1px solid #e2e8f0; background: #f8fafc; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.shot-foot .lk { color: #64748b; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; }

/* Template list rows */
.shot-tmpl { display: flex; align-items: flex-start; gap: 9px; padding: 9px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 7px; }
.shot-tmpl.sel { border-color: #00B7C2; background: #ecfeff; }
.shot-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; margin-top: 2px; }
.shot-tmpl.sel .shot-radio, .shot-opt.sel .shot-radio { border-color: #00B7C2; background: #00B7C2; box-shadow: inset 0 0 0 2px #fff; }
.shot-tname { font-weight: 600; color: #0f172a; font-size: 10.5px; }
.shot-tprev { color: #64748b; font-size: 9px; margin: 2px 0 0; line-height: 1.5; }
.shot-badge { padding: 1px 6px; border-radius: 4px; font-size: 8px; font-weight: 700; }
.shot-badge.mkt { background: #d1fae5; color: #047857; }
.shot-badge.sel { background: #cffafe; color: #0e7490; }
.shot-apply { padding: 4px 10px; border-radius: 7px; font-size: 9px; font-weight: 700; border: 1px solid #cbd5e1; color: #475569; }
.shot-apply.on { background: #00B7C2; color: #fff; border-color: transparent; }
.shot-search { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.shot-chipbtn { padding: 4px 9px; border-radius: 999px; border: 1px solid #cbd5e1; font-size: 9px; color: #64748b; }
.shot-chipbtn.on { background: #0f172a; color: #fff; border-color: #0f172a; }

/* Radio option cards (audience / when) */
.shot-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.shot-opt { border: 1px solid #e2e8f0; border-radius: 8px; padding: 11px; }
.shot-opt.sel { border: 2px solid #00B7C2; background: #ecfeff; padding: 10px; }
.shot-opt .t { display: flex; align-items: center; gap: 7px; font-weight: 600; color: #0f172a; font-size: 10.5px; }
.shot-opt .t .shot-radio { margin-top: 0; }
.shot-opt p { color: #64748b; font-size: 9px; margin: 4px 0 0 21px; }

/* WhatsApp phone */
.shot-ph { width: 178px; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,0.22); overflow: hidden; border: 5px solid #111827; }
.shot-ph .bar { background: #075e54; color: #fff; padding: 8px 10px; display: flex; align-items: center; gap: 7px; }
.shot-ph .bar .av { width: 22px; height: 22px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; flex-shrink: 0; }
.shot-ph .bar b { font-size: 10px; display: block; line-height: 1.2; }
.shot-ph .bar small { font-size: 8px; color: rgba(255,255,255,0.75); }
.shot-ph .chat { background: #e5ddd5; padding: 12px 10px; min-height: 150px; }
.shot-bubble { background: #dcf8c6; border-radius: 9px; padding: 8px 9px; font-size: 9px; color: #111b21; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
.shot-bubble .cta { margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,0.1); text-align: center; color: #027eb5; font-weight: 700; }
.shot-var { background: #fef3c7; color: #92400e; border-radius: 2px; padding: 0 2px; font-weight: 700; }

/* ===== INBOX SCREEN ===== */
.shot-itabs { display: flex; border-bottom: 1px solid #e2e8f0; padding: 0 14px; background: #fff; }
.shot-itabs span { padding: 9px 12px; font-size: 10.5px; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; }
.shot-itabs span.active { color: #00B7C2; border-bottom-color: #00B7C2; }
.shot-ipanes { display: flex; flex: 1; min-height: 0; }
.shot-clist { flex: 0 0 220px; border-right: 1px solid #e2e8f0; background: #fff; display: flex; flex-direction: column; }
.shot-clist .clh { padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; font-weight: 700; font-size: 10.5px; color: #0f172a; }
.shot-clist .cls { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.shot-clist .cls .box { background: #f1f5f9; border-radius: 7px; padding: 6px 9px; color: #94a3b8; font-size: 9px; }
.shot-conv { display: flex; gap: 8px; padding: 9px 11px; border-bottom: 1px solid #f6f8fa; align-items: flex-start; }
.shot-conv.active { background: #ecfeff; }
.shot-conv .av { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shot-conv .cv { flex: 1; min-width: 0; }
.shot-conv .cv .nm { font-weight: 600; color: #0f172a; font-size: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.shot-conv .cv .nm .tm { color: #94a3b8; font-size: 8px; font-weight: 400; flex-shrink: 0; }
.shot-conv .cv .pv { color: #64748b; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-conv . chx { font-size: 11px; }
.shot-chatp { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #eef3f6; }
.shot-chatp .chh { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; }
.shot-chatp .chh .l { display: flex; align-items: center; gap: 8px; }
.shot-chatp .chh .av { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shot-chatp .chh .nm { font-weight: 700; font-size: 11px; color: #0f172a; }
.shot-pillok { background: #dcfce7; color: #15803d; border-radius: 999px; padding: 2px 9px; font-size: 8.5px; font-weight: 700; }
.shot-msgs { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.shot-datediv { text-align: center; color: #94a3b8; font-size: 8px; font-weight: 700; letter-spacing: 0.06em; }
.shot-msg { max-width: 78%; padding: 8px 10px; border-radius: 10px; font-size: 9.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,0.05); }
.shot-msg.in { align-self: flex-start; background: #fff; color: #0f172a; border-radius: 2px 10px 10px 10px; }
.shot-msg.out { align-self: flex-end; background: #dcf8c6; color: #111b21; border-radius: 10px 2px 10px 10px; }
.shot-msg .tm { display: block; text-align: right; color: #94a3b8; font-size: 7.5px; margin-top: 3px; }
.shot-chatp .inp { background: #fff; border-top: 1px solid #e2e8f0; padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.shot-chatp .inp .box { flex: 1; background: #f1f5f9; border-radius: 18px; padding: 7px 11px; color: #94a3b8; font-size: 9px; }
.shot-chatp .inp .snd { width: 28px; height: 28px; border-radius: 50%; background: #00B7C2; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== KNOWLEDGE BASE SCREEN ===== */
.shot-stats.five { grid-template-columns: repeat(5, 1fr); }
.shot-kf { border: 1px solid #e2e8f0; border-radius: 7px; padding: 5px 9px; font-size: 9px; color: #475569; background: #fff; }
.shot-kbrow { display: flex; gap: 12px; }
.shot-kbgrid { flex: 1; min-width: 0; }
.shot-doc { border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px; background: #fff; max-width: 165px; }
.shot-doc .ic { font-size: 19px; }
.shot-doc .nm { font-weight: 600; font-size: 10px; color: #0f172a; margin: 7px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-doc .mt { color: #94a3b8; font-size: 8.5px; }
.shot-doc .ok { display: inline-block; margin-top: 8px; background: #dcfce7; color: #15803d; border-radius: 6px; padding: 2px 7px; font-size: 8.5px; font-weight: 700; }
.shot-info { flex: 0 0 200px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; }
.shot-info .hd { font-weight: 700; font-size: 10px; color: #0f172a; margin-bottom: 6px; }
.shot-fmt { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f6f8fa; font-size: 9px; color: #334155; }
.shot-fmt span { color: #94a3b8; }

@media (max-width: 640px) {
    .shot-side { display: none; }
    .shot-wiz .shot-phone { display: none; }
    .shot-stats { grid-template-columns: repeat(2, 1fr); }
    .shot-stats.five { grid-template-columns: repeat(3, 1fr); }
    .shot-body { font-size: 10px; }
    .shot-opts { grid-template-columns: 1fr; }
    .shot-info { display: none; }
    .shot-clist { flex-basis: 150px; }
}

/* ===== APP-SHELL MOCKUPS (match the real HabariChat product UI) ===== */
.help-figure.ux .frame { background: #0f172a; position: relative; }
.help-figure.shot .frame { position: relative; }
/* Fit-to-width: render the mockup at a fixed design width, then scale it down by JS so
   proportions stay correct and nothing overflows / overlaps. */
/* Render the mockup at a fixed design width, then scale it to fit the frame (correct zoom). */
.mock-fit { position: relative; width: 100%; overflow: hidden; }
.mock-fit > .ux, .mock-fit > .shot-body { width: 1080px; transform-origin: top left; }
/* Scope to the canvas (always a direct child of .mock-fit). The mockup <figure>
   also carries an `ux` modifier class, so a bare `.ux` rule would wrongly turn the
   figure into a flex row and collapse the frame to half-width. */
.mock-fit > .ux { display: flex; background: #fff; color: #0f172a; font-size: 11.5px; line-height: 1.45; min-height: 360px; }
.mock-fit > .ux * { box-sizing: border-box; min-width: 0; }
.ux-brand .bi, .ux-pt .pi, .ux-conv .av, .ux-chh .av, .ux-user, .ux-help, .ux-wa, .ux-nav a i, .ux-logout i, .ux-new i { flex-shrink: 0; }

/* Sidebar */
.ux-side { flex: 0 0 172px; background: #f3efe8; border-right: 1px solid #eae3d6; display: flex; flex-direction: column; padding: 12px 10px; }
.ux-brand { display: flex; align-items: center; gap: 8px; padding: 2px 4px 12px; }
.ux-brand .bi { width: 28px; height: 28px; border-radius: 7px; background: #d6f1f1; color: #0e7490; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ux-brand b { font-size: 12.5px; font-weight: 800; color: #0f172a; display: block; line-height: 1.15; }
.ux-brand small { font-size: 8px; color: #94a3b8; }
.ux-brand .chev { margin-left: auto; color: #cbd5e1; font-size: 11px; }
.ux-new { display: flex; align-items: center; gap: 9px; padding: 8px; color: #334155; font-size: 11px; font-weight: 500; }
.ux-new i { color: #64748b; width: 16px; text-align: center; }
.ux-navlabel { font-size: 8px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; margin: 8px 0 6px; padding-left: 7px; }
.ux-nav a { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 9px; margin-bottom: 3px; }
.ux-nav a i { width: 16px; text-align: center; color: #64748b; font-size: 13px; margin-top: 1px; flex-shrink: 0; }
.ux-nav a .tx b { display: block; font-size: 11px; font-weight: 600; color: #1e293b; line-height: 1.2; }
.ux-nav a .tx small { font-size: 8px; color: #94a3b8; }
.ux-nav a.active { background: #d8f1f1; border-left: 3px solid #00B7C2; padding-left: 5px; }
.ux-nav a.active i, .ux-nav a.active .tx b { color: #0e7490; }
.ux-logout { margin-top: auto; border: 1px solid #ece2d2; border-radius: 10px; padding: 8px; display: flex; align-items: flex-start; gap: 9px; }
.ux-logout i { color: #ef4444; width: 16px; text-align: center; margin-top: 1px; }
.ux-logout .tx b { display: block; font-size: 11px; font-weight: 600; color: #ef4444; line-height: 1.2; }
.ux-logout .tx small { font-size: 8px; color: #f1a3a3; }

/* Main */
.ux-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.ux-top { padding: 10px 14px; border-bottom: 1px solid #eef0f2; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; row-gap: 6px; }
.ux-pt { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ux-pt .pi { width: 30px; height: 30px; border-radius: 8px; background: #d6f1f1; color: #0e7490; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.ux-pt .h { font-size: 15px; font-weight: 800; color: #0f172a; line-height: 1.15; }
.ux-pt .s { font-size: 9px; color: #64748b; }
.ux-topr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ux-org { border: 1px solid #cbd5e1; border-radius: 999px; padding: 5px 11px; font-size: 9px; font-weight: 700; color: #334155; letter-spacing: 0.02em; }
.ux-connect { background: #00B7C2; color: #fff; border-radius: 999px; padding: 6px 13px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ux-help { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #e2e8f0; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.ux-user { width: 26px; height: 26px; border-radius: 50%; background: #2dd4d4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.ux-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Inbox tabs */
.ux-tabs { display: flex; align-items: center; gap: 14px; padding: 11px 14px; }
.ux-tab { padding: 9px 14px; border-radius: 9px; font-size: 11px; font-weight: 700; color: #64748b; }
.ux-tab.active { background: #00B7C2; color: #fff; flex: 1; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ux-tab.active .liveblip { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ux-tab.plain { margin-left: auto; color: #64748b; }

/* Inbox panes */
.ux-panes { display: flex; flex: 1; min-height: 0; border-top: 1px solid #eef0f2; }
.ux-clist { flex: 0 0 248px; border-right: 1px solid #eef0f2; display: flex; flex-direction: column; }
.ux-search { display: flex; gap: 7px; padding: 9px 10px; }
.ux-search .box { flex: 1; border: 1px solid #e2e8f0; border-radius: 9px; padding: 7px 10px; color: #94a3b8; font-size: 10px; }
.ux-search .ref { width: 30px; border: 1px solid #e2e8f0; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #64748b; }
.ux-conv { display: flex; gap: 9px; padding: 10px 11px; border-bottom: 1px solid #f4f6f8; align-items: flex-start; border-left: 3px solid transparent; }
.ux-conv.active { border-left-color: #0f172a; background: #fbfdfd; }
.ux-conv .av { width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ux-conv .cv { flex: 1; min-width: 0; }
.ux-conv .cv .nm { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; color: #0f172a; font-size: 10.5px; }
.ux-conv .cv .nm .tm { font-size: 8.5px; color: #94a3b8; font-weight: 400; flex-shrink: 0; }
.ux-conv .cv .pv { color: #64748b; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 1px 0 5px; }
.ux-ch, .ux-wa { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #bbf7d0; color: #16a34a; border-radius: 999px; padding: 1px 7px; font-size: 8px; font-weight: 600; }
/* Per-channel badge colours */
.ux-ch.ux-wa { border-color: #bbf7d0; color: #16a34a; }   /* WhatsApp  */
.ux-ch.ux-fb { border-color: #c7ddff; color: #0084ff; }   /* Messenger */
.ux-ch.ux-ig { border-color: #f3cbe4; color: #c13584; }   /* Instagram */
.ux-ch.ux-sms { border-color: #cbd5e1; color: #475569; }  /* SMS       */
.ux-ch.ux-lc { border-color: #99e6e6; color: #0e7490; }   /* Live Chat */

/* Chat panel */
.ux-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #ece5db; }
.ux-chh { background: #fff; border-bottom: 1px solid #eef0f2; padding: 9px 14px; }
.ux-chh .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ux-chh .nm { font-size: 13px; font-weight: 800; color: #0f172a; }
.ux-run { background: #00B7C2; color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 10px; font-weight: 700; }
.ux-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ux-chip { border: 1px solid #d7dde3; color: #64748b; border-radius: 999px; padding: 2px 9px; font-size: 8.5px; }
.ux-msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ux-card { background: #fff; border-radius: 10px; padding: 11px 13px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.ux-card .tx { font-size: 10.5px; color: #0f172a; line-height: 1.55; }
.ux-src { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f1f5f9; font-size: 8.5px; color: #94a3b8; flex-wrap: wrap; }
.ux-src b { font-weight: 700; letter-spacing: 0.04em; }
.ux-src .r { color: #0891b2; font-weight: 600; }
.ux-refs { font-size: 8.5px; color: #64748b; margin-top: 6px; }
.ux-sent { font-size: 8.5px; color: #94a3b8; text-align: right; margin-top: 6px; }
.ux-out { align-self: flex-end; max-width: 78%; background: #cdeeee; border-radius: 12px; padding: 10px 13px; }
.ux-out .tx { font-size: 10.5px; color: #0f3a3d; line-height: 1.5; }
.ux-out .tm { font-size: 8px; color: #5b8a8c; text-align: right; margin-top: 5px; }
.ux-pend { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 9px; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.ux-pillpend { border: 1px solid #99e6e6; color: #0891b2; border-radius: 999px; padding: 2px 10px; font-size: 9px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.ux-pillpend::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #00B7C2; display: inline-block; }
.ux-acts { display: flex; gap: 7px; }
.ux-act { border-radius: 8px; padding: 5px 11px; font-size: 9.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.ux-act.edit { border: 1px solid #cbd5e1; color: #475569; }
.ux-act.reject { border: 1px solid #fca5a5; color: #dc2626; }
.ux-act.send { background: #00B7C2; color: #fff; }

@media (max-width: 640px) {
    .ux-side { display: none; }
    .ux-clist { flex-basis: 150px; }
    .ux-body, .mock-fit > .ux { font-size: 10px; }
}

/* ===== INLINE LIVE SIMULATION EMBED ===== */
.help-embed { margin: var(--spacing-md) 0 var(--spacing-lg); max-width: 860px; }
.help-embed .frame { border-radius: var(--border-radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 6px rgba(0,183,194,0.06); background: #0a2e52; }
.help-embed .chrome { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.07); }
.help-embed .chrome span.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.help-embed .chrome span.dot:nth-child(1) { background: #ff5f57; }
.help-embed .chrome span.dot:nth-child(2) { background: #febc2e; }
.help-embed .chrome span.dot:nth-child(3) { background: #28c840; }
.help-embed .chrome .lbl { margin-left: auto; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--page-accent); padding: 2px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.help-embed .chrome .lbl .liveblip { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: helpBlip 1.4s ease-in-out infinite; }
@keyframes helpBlip { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.help-embed .embed-wrap { position: relative; background: #f4f7fa; height: 460px; }
.help-embed iframe { display: block; width: 100%; height: 100%; border: 0; background: #f4f7fa; }
.help-embed .embed-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: radial-gradient(circle at center, var(--primary-color), var(--primary-dark)); color: #fff; cursor: pointer; }
.help-embed .embed-poster .pbtn { width: 56px; height: 56px; border-radius: 50%; background: var(--page-accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #fff; box-shadow: 0 8px 24px var(--page-accent-shadow); }
.help-embed .embed-poster span { font-size: 0.85rem; font-weight: 600; color: var(--text-medium); }
.help-embed figcaption { margin-top: 0.7rem; font-size: 0.8rem; color: var(--text-light); font-style: italic; }
.help-embed figcaption a { color: var(--page-accent); font-weight: 600; font-style: normal; }
.help-embed figcaption a:hover { text-decoration: underline; }
@media (max-width: 600px) {
    .help-embed .embed-wrap { height: 380px; }
}

/* ===== RESPONSIVE ===== */
/* Hide the right "On this page" rail first, since space is tightest there */
@media (max-width: 1180px) {
    .help-toc { display: none; }
}
@media (max-width: 992px) {
    .quickstart { grid-template-columns: 1fr; }
    .qs-step:not(:last-child)::after { content: '\f063'; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
    .help-layout { flex-direction: column; gap: var(--spacing-lg); }
    .help-sidebar { position: static; max-height: none; overflow: visible; flex: 1 1 auto; width: 100%; }
    .help-nav-toggle {
        display: flex; align-items: center; justify-content: space-between; width: 100%;
        background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.1); color: #fff;
        padding: 0.8rem 1.1rem; border-radius: var(--border-radius-md); font-family: var(--heading-font);
        font-weight: 600; font-size: 0.95rem; cursor: pointer; margin-bottom: var(--spacing-md);
    }
    .help-nav-toggle i { color: var(--page-accent); transition: transform var(--transition-fast); }
    .help-nav-toggle.open i { transform: rotate(180deg); }
    .help-nav-collapse { display: none; }
    .help-nav-collapse.open { display: block; }
}
@media (max-width: 576px) {
    .help-page { padding-top: 6rem; }
    .help-main-head h1 { font-size: 1.8rem; }
    .help-home-hero h1 { font-size: 1.9rem; }
    .help-section > h2 { font-size: 1.25rem; }
}
