/* ============================================================
   Seli Help Center — Global Stylesheet
   Clean & professional theme (brand red used sparingly).
   Fonts: Outfit (headings) · Inter (body)
   ============================================================ */

:root {
  --help-bg:      #F7F8FA;
  --help-surface: #FFFFFF;
  --help-ink:     #101828;   /* primary text */
  --help-ink-2:   #475467;   /* secondary text */
  --help-ink-3:   #98A2B3;   /* muted text */
  --help-border:  #E6E8EF;   /* hairlines */
  --help-red:     #F9295F;   /* brand accent — used sparingly */
  --help-red-soft:#FFF0F4;   /* pale red tint backgrounds */
  --help-turq:    #1B9AAA;   /* secondary palette accents */
  --help-teal:    #06D6A0;
  --help-lime:    #A8C753;
  --help-purple:  #D100D1;
  --sidebar-w:    280px;
  --content-max:  780px;
  --radius:       12px;
  --shadow-sm:    0 1px 2px rgba(16,24,40,0.05), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-md:    0 8px 24px rgba(16,24,40,0.08);
  --shadow-lg:    0 16px 48px rgba(16,24,40,0.12);
  --transition:   0.18s ease;
}

/* -- Fonts (Google Fonts CDN) ---------------------------------- */
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--help-bg);
  color: var(--help-ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--help-ink);
}
a { color: var(--help-red); text-decoration: none; }
a:hover { color: var(--help-red); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--help-red); outline-offset: 2px; border-radius: 4px; }

/* -- Navbar ----------------------------------------------------- */
.help-navbar {
  background: var(--help-surface);
  border-bottom: 1px solid var(--help-border);
  min-height: 62px;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.sidebar-toggle-btn {
  background: none;
  border: 1px solid var(--help-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  font-size: 1.15rem;
  color: var(--help-ink);
  margin-right: 12px;
  flex-shrink: 0;
}
.sidebar-toggle-btn:hover { background: var(--help-bg); }
.help-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--help-ink);
  flex-shrink: 0;
}
.help-logo:hover { text-decoration: none; }
.help-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--help-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}
.help-logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Outfit'; font-size: 1.05rem; color: var(--help-ink); }
.brand-text small { font-size: 0.68rem; color: var(--help-ink-3); letter-spacing: 0.02em; }

.navbar-search-wrap { max-width: 420px; position: relative; }
.help-search-input,
.help-search-input:focus {
  background: var(--help-bg);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
  box-shadow: none;
}
.help-search-input:focus { border-color: var(--help-red); background: var(--help-surface); }
.help-search-input::placeholder { color: var(--help-ink-3); }
.input-group-text {
  background: var(--help-bg);
  border: 1px solid transparent;
  color: var(--help-ink-3);
  border-radius: 10px 0 0 10px !important;
}

.go-to-app {
  background: var(--help-red);
  color: #fff;
  font-weight: 600;
  border: 1.5px solid var(--help-red);
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.go-to-app:hover { background: #E11D4E; border-color: #E11D4E; color: #fff; }

/* -- Search results dropdown -------------------------------------- */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1050;
}
.sr-group-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--help-ink-3);
  font-weight: 600;
  padding: 10px 14px 4px;
}
.sr-item {
  display: block;
  padding: 9px 14px;
  color: var(--help-ink);
  font-size: 0.88rem;
  border-left: 3px solid transparent;
}
.sr-item:hover { background: var(--help-bg); text-decoration: none; }
.sr-item .sr-item-title { font-weight: 600; }
.sr-item .sr-item-cat { color: var(--help-ink-3); font-size: 0.78rem; }
.sr-empty { padding: 16px 14px; color: var(--help-ink-2); font-size: 0.9rem; }
.sr-footer {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--help-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--help-red);
}

/* -- Layout: sidebar + content ------------------------------------- */
.page-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 40px;
  padding: 32px 24px 64px;
  align-items: start;
}
.help-sidebar {
  position: sticky;
  top: 82px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.sidebar-home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--help-ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.sidebar-home-link:hover { background: var(--help-bg); text-decoration: none; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--help-ink-2);
  text-align: left;
}
.sidebar-section-btn:hover { background: var(--help-bg); color: var(--help-ink); }
.sidebar-section-btn.active-section { color: var(--help-red); background: var(--help-red-soft); }
.sidebar-section-icon { margin-right: 8px; }
.sidebar-links { list-style: none; margin: 0; padding: 0 0 6px; }
.sidebar-links li a {
  display: block;
  padding: 5px 12px 5px 34px;
  font-size: 0.83rem;
  color: var(--help-ink-2);
  border-left: 2px solid transparent;
}
.sidebar-links li a:hover { color: var(--help-ink); text-decoration: none; background: var(--help-bg); border-radius: 0 8px 8px 0; }
.sidebar-links li a.active { color: var(--help-red); font-weight: 600; border-left-color: var(--help-red); }

.sidebar-utility {
  border-top: 1px solid var(--help-border);
  margin-top: 12px;
  padding: 12px;
}
.sidebar-utility a { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--help-ink-2); }
.sidebar-utility a:hover { text-decoration: none; color: var(--help-red); }

.main-content { min-width: 0; }

/* -- Hero (home) ----------------------------------------------------- */
.help-hero {
  padding: 72px 0 48px;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--help-bg) 100%);
  border-bottom: 1px solid var(--help-border);
}
.help-hero .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--help-red-soft);
  color: var(--help-red);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.help-hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.help-hero .hero-sub { color: var(--help-ink-2); font-size: 1.05rem; max-width: 560px; margin: 0 auto 32px; }
.hero-search-wrap { max-width: 620px; margin: 0 auto; position: relative; }
.hero-search-wrap .input-group-text { border-radius: 14px 0 0 14px !important; background: var(--help-surface); padding-left: 16px; }
.hero-search-wrap .help-search-input,
.hero-search-wrap .help-search-input:focus {
  background: var(--help-surface);
  border-radius: 14px;
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
}
.btn-search {
  background: var(--help-ink);
  color: #fff;
  border: none;
  border-radius: 0 14px 14px 0;
  padding: 0 22px;
  font-size: 1rem;
}
.btn-search:hover { background: var(--help-red); }
.hero-quick-chips { margin-top: 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero-quick-chips .chip {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--help-ink-2);
  font-size: 0.83rem;
}
.hero-quick-chips .chip:hover { border-color: var(--help-red); color: var(--help-red); text-decoration: none; }

/* -- Popular articles ------------------------------------------------ */
.section-block { padding: 48px 0 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.section-title h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0; }
.section-title .section-link { font-size: 0.88rem; font-weight: 600; }

.popular-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.popular-card {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.popular-card:hover { box-shadow: var(--shadow-md); border-color: #D9DCE6; transform: translateY(-2px); text-decoration: none; }
.popular-card .pc-cat { color: var(--help-red); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.popular-card .pc-title { font-family: 'Outfit'; font-size: 1.02rem; font-weight: 600; color: var(--help-ink); line-height: 1.35; }
.popular-card .pc-desc { color: var(--help-ink-2); font-size: 0.85rem; }

/* -- Category cards -------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: block;
  transition: box-shadow var(--transition), transform var(--transition);
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; border-color: #D9DCE6; }
.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.category-icon.c-red    { background: var(--help-red-soft);   color: var(--help-red); }
.category-icon.c-turq   { background: #E6F6F8;                color: var(--help-turq); }
.category-icon.c-teal   { background: #E4FBF4;                color: #0FA37C; }
.category-icon.c-lime   { background: #F2F7E3;                color: var(--help-lime); }
.category-icon.c-purple { background: #FAE9FA;                color: var(--help-purple); }
.category-icon.c-ink    { background: #EEEFF3;                color: var(--help-ink); }
.category-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.category-card p { color: var(--help-ink-2); font-size: 0.88rem; margin-bottom: 14px; }
.category-count { color: var(--help-ink-3); font-size: 0.8rem; font-weight: 600; }
.no-results { display: none; text-align: center; padding: 40px 0; color: var(--help-ink-2); }

/* -- Category landing ----------------------------------------------- */
.help-breadcrumb { font-size: 0.82rem; color: var(--help-ink-3); margin-bottom: 20px; }
.help-breadcrumb a { color: var(--help-ink-3); }
.help-breadcrumb a:hover { color: var(--help-red); text-decoration: none; }
.cat-header { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.cat-header .category-icon { margin-bottom: 0; flex-shrink: 0; }
.cat-header h1 { font-size: 1.9rem; letter-spacing: -0.02em; margin: 0; }
.article-meta { color: var(--help-ink-3); font-size: 0.85rem; margin-bottom: 24px; }

.article-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.article-list-item { background: var(--help-surface); border: 1px solid var(--help-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.article-list-item a { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; color: var(--help-ink); }
.article-list-item a:hover { text-decoration: none; box-shadow: var(--shadow-md); border-radius: var(--radius); }
.article-list-icon { font-size: 1.3rem; color: var(--help-ink-3); }
.article-list-item:hover .article-list-icon { color: var(--help-red); }
.article-list-title { font-weight: 600; font-family: 'Outfit'; font-size: 1rem; }
.article-list-desc { color: var(--help-ink-2); font-size: 0.85rem; }

/* -- Article body --------------------------------------------------- */
.article-header h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.article-body { max-width: var(--content-max); }
.article-body > p { color: var(--help-ink-2); }
.article-body h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
  padding-top: 0.4rem;
  scroll-margin-top: 84px;
}
.article-body h3 { font-size: 1.08rem; margin: 1.6rem 0 0.5rem; }
.article-body ul, .article-body ol { color: var(--help-ink-2); padding-left: 1.3rem; }
.article-body li { margin-bottom: 8px; }
.article-body code {
  background: #F2F4F7; color: var(--help-red); border-radius: 5px;
  padding: 1px 6px; font-size: 0.85em;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.88rem; }
.article-body th { font-family: 'Outfit'; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--help-ink-2); }
.article-body th, .article-body td { border: 1px solid var(--help-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body tr:nth-child(even) td { background: #FBFCFD; }

.step-list { list-style: none; margin: 0 0 1.4rem; padding: 0; counter-reset: step; }
.step-list > li { counter-increment: step; position: relative; padding: 0 0 16px 44px; margin: 0; }
.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--help-ink);
  color: #fff;
  font-family: 'Outfit'; font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-list > li p { margin: 0; }

.help-callout { border-radius: var(--radius); padding: 16px 18px; margin: 1.4rem 0; border: 1px solid var(--help-border); background: var(--help-surface); }
.help-callout .help-callout-title { font-weight: 700; font-family: 'Outfit'; font-size: 0.92rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.help-callout p { margin: 0; color: var(--help-ink-2); font-size: 0.9rem; }
.help-callout.tip    { border-left: 4px solid var(--help-teal);    background: #F4FCF9; }
.help-callout.tip .help-callout-title { color: #0FA37C; }
.help-callout.info   { border-left: 4px solid var(--help-turq);    background: #F2F9FA; }
.help-callout.info .help-callout-title { color: var(--help-turq); }
.help-callout.warn   { border-left: 4px solid var(--help-red);     background: var(--help-red-soft); }
.help-callout.warn .help-callout-title { color: var(--help-red); }

/* -- Jump to section (on-this-page) ---------------------------------- */
.jump-toc {
  position: sticky;
  top: 92px;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.83rem;
}
.jump-toc h6 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--help-ink-3); font-weight: 700; margin-bottom: 8px; }
.jump-toc ul { list-style: none; margin: 0; padding: 0; }
.jump-toc li a { display: block; padding: 4px 0; color: var(--help-ink-2); }
.jump-toc li a:hover { color: var(--help-red); text-decoration: none; }

/* -- Was this helpful ------------------------------------------------ */
.was-helpful {
  margin: 2.4rem 0 1rem;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.was-helpful p { margin: 0; font-weight: 600; font-family: 'Outfit'; }
.vote-btns { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.vote-btn {
  border: 1px solid var(--help-border);
  background: var(--help-surface);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  color: var(--help-ink-2);
  font-weight: 600;
}
.vote-btn:hover { border-color: var(--help-red); color: var(--help-red); }
.vote-btn.voted { background: var(--help-red); border-color: var(--help-red); color: #fff; }
.thanks-msg { display: none; margin-top: 10px; color: var(--help-teal); font-weight: 600; }

.related-articles { margin: 1.6rem 0; }
.related-articles h5 { font-size: 0.95rem; margin-bottom: 10px; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related-list li a {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--help-surface); border: 1px solid var(--help-border);
  border-radius: 999px; padding: 6px 14px; color: var(--help-ink-2); font-size: 0.83rem;
}
.related-list li a:hover { border-color: var(--help-red); color: var(--help-red); text-decoration: none; }

/* -- Still need help CTA ---------------------------------------------- */
.still-need-help {
  background: var(--help-red-soft);
  border: 1px solid #FFDFE7;
  border-radius: 16px;
  padding: 28px;
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.still-need-help h3 { color: var(--help-red); font-size: 1.2rem; margin: 0 0 4px; }
.still-need-help p { color: var(--help-ink-2); margin: 0; font-size: 0.9rem; }

/* -- Contact page ------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.contact-card {
  background: var(--help-surface); border: 1px solid var(--help-border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.contact-card .category-icon { margin-bottom: 12px; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card p { color: var(--help-ink-2); font-size: 0.88rem; }
.contact-card a.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--help-border); border-radius: 10px;
  padding: 8px 16px; font-size: 0.88rem; font-weight: 600; color: var(--help-ink);
}
.contact-card a.btn-ghost:hover { border-color: var(--help-red); color: var(--help-red); text-decoration: none; }

/* -- Search results page ----------------------------------------------- */
.results-box { max-width: 720px; margin: 0 auto; }
.results-query { color: var(--help-red); font-weight: 700; }
.results-summary { color: var(--help-ink-3); font-size: 0.88rem; margin-bottom: 24px; }
.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--help-surface); border: 1px solid var(--help-border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); color: var(--help-ink);
}
.result-item:hover { text-decoration: none; box-shadow: var(--shadow-md); }
.result-item .result-cat { color: var(--help-red); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.result-item .result-title { font-family: 'Outfit'; font-weight: 600; font-size: 1rem; }
.result-item .result-desc { color: var(--help-ink-2); font-size: 0.85rem; }

/* -- Footer ------------------------------------------------------------ */
.help-footer {
  border-top: 1px solid var(--help-border);
  background: var(--help-surface);
  padding: 28px 0;
  margin-top: 32px;
}
.help-footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.help-footer .footer-links a { color: var(--help-ink-2); font-size: 0.85rem; }
.help-footer .footer-links a:hover { color: var(--help-red); }
.help-footer p { color: var(--help-ink-3); font-size: 0.8rem; margin: 0; }

/* -- Offcanvas sidebar --------------------------------------------------- */
.offcanvas-sidebar { width: 300px !important; }
.offcanvas-sidebar .offcanvas-body { padding: 12px; }

/* -- Responsive ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .page-wrapper { grid-template-columns: 1fr; padding: 24px 16px 48px; gap: 0; }
  .help-sidebar { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .jump-toc { display: none; }
  .popular-list, .category-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .popular-list, .category-grid, .contact-grid { grid-template-columns: 1fr; }
  .help-hero { padding: 48px 0 36px; }
  .navbar-search-wrap { display: none; }
  .btn-search { display: none; }
  .hero-search-wrap .input-group { flex-wrap: nowrap; }
  .hero-search-wrap .help-search-input { border-radius: 14px; }
}