/**
 *@copyright : ToXSL Technologies Pvt. Ltd. < www.toxsl.com >
 *
 * Help Module — Universal Stylesheet
 * Override --bg-main (and optionally --help-accent) in your project CSS
 * and the entire module adapts to your brand automatically.
 *
 * ─── QUICK PROJECT OVERRIDES ────────────────────────────────────────────────
 * eCommerce   : --bg-main:#e44d26; --help-accent:#f7931e
 * Booking     : --bg-main:#1a73e8; --help-accent:#fbbc04
 * Restaurant  : --bg-main:#2d6a4f; --help-accent:#f4845f
 * IoT/Tech    : --bg-main:#1b1b2f; --help-accent:#00f5d4
 * Inventory   : --bg-main:#5c2d91; --help-accent:#107c10
 * Healthcare  : --bg-main:#00796b; --help-accent:#f06292
 * ────────────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS  (override these per project)
═══════════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --bg-main: #0096ff;
  --bg-light-blue: #e7f1f1;

  /* Neutrals */
  --help-bg: #f4f7fb;
  --help-card-bg: #ffffff;
  --help-border: #e2e8f0;
  --help-text-main: #1a202c;
  --help-text-muted: #718096;
  --help-text-light: #a0aec0;

  /* Shape */
  --help-radius-sm: 8px;
  --help-radius: 14px;
  --help-radius-lg: 20px;
  --help-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --help-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --help-shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);

  /* Category palette  (auto-assigned by type.color_index 1–8) */
  --help-cat-1: #4361ee;
  --help-cat-2: #f72585;
  --help-cat-3: #3a0ca3;
  --help-cat-4: #4cc9f0;
  --help-cat-5: #06d6a0;
  --help-cat-6: #ffc107;
  --help-cat-7: #e63946;
  --help-cat-8: #ff9f1c;

  /* Difficulty */
  --help-diff-beginner: #06d6a0;
  --help-diff-intermediate: #ffc107;
  --help-diff-advanced: #e63946;

  /* Transitions */
  --help-ease: cubic-bezier(.4, 0, .2, 1);
  --help-dur: .22s;
}

/* ═══════════════════════════════════════════════════════════════════
   2. BASE RESETS
═══════════════════════════════════════════════════════════════════ */
.help-module img {
  max-width: 100%;
  height: auto;
}

.help-module dl,
.help-module ul,
.help-module ol {
  margin-bottom: 0;
  padding-left: 0;
}

.help-module ul li {
  list-style: none;
}

.help-module a {
  text-decoration: none;
}

.help-module a:hover {
  color: var(--bg-main);
}

/* ═══════════════════════════════════════════════════════════════════
   3. HERO BANNER
═══════════════════════════════════════════════════════════════════ */
.help-hero {
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-main) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.help-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.help-hero .container {
  position: relative;
  z-index: 1;
}

.help-hero-title {
  color: #fff;
  letter-spacing: -.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.help-hero-subtitle {

  color: rgba(255, 255, 255, .85);
  margin-bottom: 32px;
}

/* ── Search Bar ── */
.help-search-wrap {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.help-search-wrap .help-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--help-text-muted);

  pointer-events: none;
}

.help-search-input {
  width: 100%;
  padding: 18px 56px 18px 52px;
  border: 2px solid transparent;
  border-radius: 50px;

  background: #fff;
  box-shadow: var(--help-shadow-lg);
  outline: none;
  transition: border-color var(--help-dur) var(--help-ease),
    box-shadow var(--help-dur) var(--help-ease);
}

.help-search-input:focus {
  border-color: var(--bg-main);
  box-shadow: 0 0 0 4px var(--bg-light-blue), 0 12px 40px rgba(0, 0, 0, .12);
}

.help-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-main);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.help-search-btn:hover {
  background: var(--bg-main);
  transform: translateY(-50%) scale(1.04);
}

/* ── Popular tags ── */
.help-popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.help-tag-chip {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .18);
  color: #fff;


  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: background var(--help-dur) var(--help-ease);
  text-decoration: none;
}

.help-tag-chip:hover {
  background: rgba(255, 255, 255, .32);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   4. SECTION TITLES
═══════════════════════════════════════════════════════════════════ */
.help-section-title {


  color: var(--help-text-main);
  margin-bottom: 6px;
}

.help-section-subtitle {

  color: var(--help-text-muted);
  margin-bottom: 32px;
}

.help-section-title-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--help-border);
}

.help-section-title-bar .help-section-title {
  margin-bottom: 0;
}

.help-section-title-bar .help-see-all {
  margin-left: auto;


  color: var(--bg-main);
}

/* ═══════════════════════════════════════════════════════════════════
   5. CATEGORY CARDS
═══════════════════════════════════════════════════════════════════ */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.help-category-card {
  background: var(--help-card-bg);
  border-radius: var(--help-radius);
  padding: 28px 22px;
  border: 1px solid var(--help-border);
  box-shadow: var(--help-shadow-sm);
  cursor: pointer;
  transition: transform var(--help-dur) var(--help-ease),
    box-shadow var(--help-dur) var(--help-ease),
    border-color var(--help-dur) var(--help-ease);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.help-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-color, var(--bg-main));
  border-radius: var(--help-radius) var(--help-radius) 0 0;
}

.help-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--help-shadow-lg);
  border-color: var(--cat-color, var(--bg-main));
  text-decoration: none;
}

.help-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cat-color-light, var(--bg-light-blue));
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--cat-color, var(--bg-main));
  margin-bottom: 16px;
}

.help-category-title {


  color: var(--help-text-main);
  margin-bottom: 6px;
}

.help-category-desc {

  color: var(--help-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.help-category-count {


  color: var(--cat-color, var(--bg-main));
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Color helper classes (set via PHP inline style) */
.help-cat-color-1 {
  --cat-color: var(--help-cat-1);
  --cat-color-light: #eef0fd;
}

.help-cat-color-2 {
  --cat-color: var(--help-cat-2);
  --cat-color-light: #fef0f7;
}

.help-cat-color-3 {
  --cat-color: var(--help-cat-3);
  --cat-color-light: #eeebf9;
}

.help-cat-color-4 {
  --cat-color: var(--help-cat-4);
  --cat-color-light: #eafaff;
}

.help-cat-color-5 {
  --cat-color: var(--help-cat-5);
  --cat-color-light: #eafaf5;
}

.help-cat-color-6 {
  --cat-color: var(--help-cat-6);
  --cat-color-light: #fff9e6;
}

.help-cat-color-7 {
  --cat-color: var(--help-cat-7);
  --cat-color-light: #fde9ea;
}

.help-cat-color-8 {
  --cat-color: var(--help-cat-8);
  --cat-color-light: #fff4e5;
}

/* ═══════════════════════════════════════════════════════════════════
   6. ARTICLE CARDS
═══════════════════════════════════════════════════════════════════ */
.help-article-card {
  background: var(--help-card-bg);
  border-radius: var(--help-radius);
  border: 1px solid var(--help-border);
  box-shadow: var(--help-shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--help-dur) var(--help-ease),
    box-shadow var(--help-dur) var(--help-ease),
    border-color var(--help-dur) var(--help-ease);
  text-decoration: none;
  height: 100%;
}

.help-article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--help-shadow);
  border-color: var(--bg-main);
  text-decoration: none;
}

.help-article-card-title {


  color: var(--help-text-main);
  line-height: 1.4;
}

.help-article-card-title:hover {
  color: var(--bg-main);
}

.help-article-card-summary {

  color: var(--help-text-muted);
  line-height: 1.55;
  flex: 1;
}

.help-article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;

  color: var(--help-text-light);
  margin-top: 6px;
}

.help-article-card-meta i {}

/* ── Badges ── */
.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;


  line-height: 1;
}

.help-badge-beginner {
  background: #eafaf5;
  color: #06d6a0;
}

.help-badge-intermediate {
  background: #fff9e6;
  color: #d09a00;
}

.help-badge-advanced {
  background: #fde9ea;
  color: #e63946;
}

.help-badge-featured {
  background: var(--bg-light-blue);
  color: var(--bg-main);
}

.help-badge-category {
  background: var(--bg-light-blue);
  color: var(--bg-main);
}

/* ── Read more arrow ── */
.help-read-more {


  color: var(--bg-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--help-dur) var(--help-ease);
}

.help-read-more:hover {
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   7. ARTICLE DETAIL
═══════════════════════════════════════════════════════════════════ */
.help-article-header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--help-border);
  margin-bottom: 28px;
}

.help-article-header h1 {


  color: var(--help-text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.help-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;

  color: var(--help-text-muted);
}

.help-article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.help-article-body {
  line-height: 1.75;
  color: var(--help-text-main);
}

.help-article-body h2,
.help-article-body h3 {
  color: var(--help-text-main);
  margin-top: 1.8em;
}

.help-article-body p {
  margin-bottom: 1.1em;
}

.help-article-body ul,
.help-article-body ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.help-article-body li {
  margin-bottom: .4em;
  list-style: disc;
}

.help-article-body code {
  background: var(--bg-light-blue);
  color: var(--bg-main);
  padding: 2px 7px;
  border-radius: 5px;

}

.help-article-body blockquote {
  border-left: 4px solid var(--bg-main);
  background: var(--bg-light-blue);
  padding: 14px 20px;
  border-radius: 0 var(--help-radius-sm) var(--help-radius-sm) 0;
  margin: 1.5em 0;
  color: var(--help-text-main);
}

/* ── Video embed ── */
.help-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--help-radius);
  margin: 24px 0;
  background: #000;
}

.help-video-wrap iframe,
.help-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════
   8. STEP-BY-STEP GUIDE
═══════════════════════════════════════════════════════════════════ */
.help-steps-section {
  background: var(--bg-light-blue);
  border-radius: var(--help-radius);
  padding: 28px 24px;
  margin: 32px 0;
  border: 1px solid rgba(var(--bg-main-rgb), .12);
}

.help-steps-heading {


  color: var(--bg-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-step-list {
  position: relative;
}

.help-step-list::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--bg-main), transparent);
}

.help-step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  position: relative;
}

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

.help-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-main);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;


  box-shadow: 0 3px 10px rgba(var(--bg-main-rgb), .35);
  z-index: 1;
}

.help-step-content {
  flex: 1;
  padding-top: 10px;
}

.help-step-title {


  color: var(--help-text-main);
  margin-bottom: 6px;
}

.help-step-desc {
  color: var(--help-text-muted);
  line-height: 1.6;
}

.help-step-screenshot {
  margin-top: 12px;
  border-radius: var(--help-radius-sm);
  border: 1px solid var(--help-border);
  max-height: 280px;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity var(--help-dur);
}

.help-step-screenshot:hover {
  opacity: .85;
}

/* ═══════════════════════════════════════════════════════════════════
   9. FAQ ACCORDION  (uses support module data)
═══════════════════════════════════════════════════════════════════ */
.help-faq-section {
  margin: 32px 0;
}

.help-faq-heading {


  color: var(--help-text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-faq-item {
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--help-dur) var(--help-ease);
}

.help-faq-item.open {
  border-color: var(--bg-main);
}

.help-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;


  color: var(--help-text-main);
  cursor: pointer;
  background: var(--help-card-bg);
  user-select: none;
  transition: background var(--help-dur);
}

.help-faq-question:hover {
  background: var(--bg-light-blue);
}

.help-faq-item.open .help-faq-question {
  background: var(--bg-light-blue);
  color: var(--bg-main);
}

.help-faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light-blue);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  transition: transform var(--help-dur) var(--help-ease),
    background var(--help-dur);
}

.help-faq-item.open .help-faq-chevron {
  transform: rotate(180deg);
  background: var(--bg-main);
  color: #fff;
}

.help-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--help-ease), padding var(--help-dur);

  color: var(--help-text-muted);
  line-height: 1.7;
  background: var(--help-card-bg);
}

.help-faq-item.open .help-faq-answer {
  max-height: 800px;
  padding: 4px 20px 18px;
}



/* ═══════════════════════════════════════════════════════════════════
   11. SIDEBAR WIDGETS
═══════════════════════════════════════════════════════════════════ */
.help-sidebar-widget {
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.help-sidebar-title {


  color: var(--help-text-main);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.help-sidebar-title i {
  color: var(--bg-main);
}

.help-sidebar-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--help-radius-sm);
  color: var(--help-text-main);


  text-decoration: none;
  transition: background var(--help-dur), color var(--help-dur);
}

.help-sidebar-link:hover {
  background: var(--bg-light-blue);
  color: var(--bg-main);
  text-decoration: none;
}

.help-sidebar-link.active {
  background: var(--bg-main);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.help-sidebar-link.active i {
  color: #fff;
}

.help-sidebar-link.active:hover {
  background: var(--bg-main);
  color: #fff;
}

.help-sidebar-link i {
  color: var(--bg-main);
  margin-top: 3px;
  flex-shrink: 0;
}

.help-sidebar-link .views {
  margin-left: auto;

  color: var(--help-text-light);
  flex-shrink: 0;
}

.help-sidebar-search input {
  width: 100%;
  border: 1px solid var(--help-border);
  border-radius: 50px;
  padding: 10px 16px;

  transition: border-color var(--help-dur);
}

.help-sidebar-search input:focus {
  outline: none;
  border-color: var(--bg-main);
}

/* ═══════════════════════════════════════════════════════════════════
   12. FLOATING HELP BUTTON + SLIDE PANEL
═══════════════════════════════════════════════════════════════════ */
.help-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-main);
  color: #fff;
  border: none;
  box-shadow: 0 6px 24px rgba(var(--bg-main-rgb), .45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;


  z-index: 9999;
  transition: transform var(--help-dur) var(--help-ease),
    box-shadow var(--help-dur) var(--help-ease);
  animation: help-float-pulse 2.4s ease-in-out infinite;
}

.help-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(var(--bg-main-rgb), .55);
  animation: none;
}

@keyframes help-float-pulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(var(--bg-main-rgb), .45);
  }

  50% {
    box-shadow: 0 6px 36px rgba(var(--bg-main-rgb), .65);
  }
}

.help-float-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 9998;
  backdrop-filter: blur(2px);
}

.help-float-backdrop.open {
  display: block;
}

.help-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--help-card-bg);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .15);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--help-ease);
}

.help-slide-panel.open {
  transform: translateX(0);
}

.help-slide-panel-header {
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-main), var(--bg-main));
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.help-slide-panel-header h6 {
  margin: 0;


  flex: 1;
}

.help-slide-close {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: background var(--help-dur);
}

.help-slide-close:hover {
  background: rgba(255, 255, 255, .35);
}

.help-slide-panel-search {
  padding: 14px 16px;
  border-bottom: 1px solid var(--help-border);
  flex-shrink: 0;
}

.help-slide-panel-search input {
  width: 100%;
  border: 1px solid var(--help-border);
  border-radius: 50px;
  padding: 9px 16px;

}

.help-slide-panel-search input:focus {
  outline: none;
  border-color: var(--bg-main);
}

.help-slide-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.help-slide-section-title {


  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--help-text-muted);
  margin-bottom: 10px;
  margin-top: 16px;
}

.help-slide-article-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--help-radius-sm);
  text-decoration: none;
  color: var(--help-text-main);


  transition: background var(--help-dur);
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.help-slide-article-link:hover {
  background: var(--bg-light-blue);
  border-color: rgba(var(--bg-main-rgb), .15);
  text-decoration: none;
}

.help-slide-article-link i {
  color: var(--bg-main);
  flex-shrink: 0;
  margin-top: 2px;
}

.help-slide-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--help-text-muted);
}

.help-slide-empty i {
  color: var(--help-text-light);
  margin-bottom: 12px;
  display: block;
}

.help-slide-panel-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--help-border);
  flex-shrink: 0;
}

.help-slide-browse-btn {
  display: block;
  text-align: center;
  background: var(--bg-main);
  color: #fff;
  border-radius: 8px;
  padding: 10px;


  text-decoration: none;
  transition: background var(--help-dur);
}

.help-slide-browse-btn:hover {
  background: var(--bg-main);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   13. SEARCH RESULTS
═══════════════════════════════════════════════════════════════════ */
.help-search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  background: var(--help-card-bg);
  margin-bottom: 12px;
  transition: border-color var(--help-dur), box-shadow var(--help-dur);
  text-decoration: none;
}

.help-search-result-item:hover {
  border-color: var(--bg-main);
  box-shadow: var(--help-shadow-sm);
  text-decoration: none;
}

.help-search-result-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-light-blue);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.help-search-result-title {


  color: var(--help-text-main);
  margin-bottom: 4px;
}

.help-search-result-snippet {
  color: var(--help-text-muted);
}

.help-search-highlight {
  color: var(--bg-main);
  background: var(--bg-light-blue);
  padding: 0 2px;
  border-radius: 3px;
}

/* ── Zero results ── */
.help-zero-results {
  text-align: center;
  padding: 60px 20px;
}

.help-zero-results-icon {
  color: var(--help-text-light);
  margin-bottom: 16px;
  display: block;
}

.help-zero-results h4 {
  color: var(--help-text-main);
  margin-bottom: 8px;
}

.help-zero-results p {
  color: var(--help-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   14. DASHBOARD STATS
═══════════════════════════════════════════════════════════════════ */
.help-stat-card {
  background: var(--help-card-bg);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--help-shadow-sm);
}

.help-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-light-blue);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.help-stat-value {


  color: var(--help-text-main);
  line-height: 1;
}

.help-stat-label {

  color: var(--help-text-muted);

  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* ── Top articles table ── */
.help-top-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-top-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--help-border);

}

.help-top-list-item:last-child {
  border-bottom: none;
}

.help-top-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-light-blue);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;


  flex-shrink: 0;
}

.help-top-rank.rank-1 {
  background: #ffc107;
  color: #fff;
}

.help-top-rank.rank-2 {
  background: #adb5bd;
  color: #fff;
}

.help-top-rank.rank-3 {
  background: #cd7f32;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   15. RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .help-hero-title {}

  .help-hero {
    padding: 48px 0 40px;
  }

  .help-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .help-slide-panel {
    width: 100vw;
  }

  .help-float-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .help-article-header h1 {}

  .help-step-list::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .help-category-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   16. LEGACY HELPERS (keep existing bg-main working)
═══════════════════════════════════════════════════════════════════ */
.bg-main {
  background-color: var(--bg-main) !important;
}

.bg-light-blue {
  background-color: var(--bg-light-blue) !important;
}