/* Phantom Helpdesk — visual inspirado em help centers (TWR/Intercom).
   Hero roxo com search central → cards de categoria → conteúdo accordion. */
:root {
  --bg: #0a0a0c;
  --panel: #ffffff;
  --text: #14141a;
  --muted: #5f5f6e;
  --border: #e2e2ea;
  --accent: #7c3aed;
  --accent-2: #a78bfa;
  --accent-3: #ec4899;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  /* Background com gradient + ruído sutil pra "vidro" funcionar bem em cima */
  background:
    radial-gradient(circle at 10% 0%, rgba(167, 139, 250, .15), transparent 50%),
    radial-gradient(circle at 90% 30%, rgba(236, 72, 153, .1), transparent 50%),
    linear-gradient(180deg, #f4f4f8 0%, #ebebf2 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ============ HERO ============ */
.help-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(167, 139, 250, .35), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(236, 72, 153, .25), transparent 50%),
    linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #a78bfa 100%);
  color: #fff;
  padding-bottom: 70px;
}
.help-hero-bar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 16px;
}
.help-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-brand img {
  height: 40px;
  width: auto;
}
.help-brand-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, .15);
  border-radius: 6px;
  text-transform: uppercase;
}
.help-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-btn-ghost {
  padding: 10px 18px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s;
}
.help-btn-ghost:hover { background: rgba(255, 255, 255, .25); }

.help-hero-body {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  padding: 0 24px;
}
.help-hero-body h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 0 28px;
}
.help-search {
  position: relative;
  display: flex;
  align-items: center;
}
.help-search svg {
  position: absolute;
  left: 22px;
  color: var(--muted);
  pointer-events: none;
}
.help-search input {
  width: 100%;
  height: 64px;
  padding: 0 24px 0 56px;
  border-radius: 14px;
  border: 0;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .15);
  outline: none;
  transition: box-shadow .15s;
}
.help-search input:focus { box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 0 3px rgba(167, 139, 250, .35); }

/* Lang switch (mesmo estilo da landing, adaptado pro hero claro) */
.help-lang-switch { position: relative; }
.help-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}
.help-lang-flag { width: 22px; height: 16px; border-radius: 2px; object-fit: cover; }
.help-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.help-lang-dropdown[hidden] { display: none !important; }
.help-lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  font-family: inherit;
}
.help-lang-opt:hover { background: #f4f4f8; }

/* ============ MAIN ============ */
.help-main {
  max-width: 1080px;
  margin: -50px auto 0;
  padding: 0 24px 60px;
  position: relative;
  z-index: 5;
}
.help-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 20px;
}

/* Categorias 2-col */
.help-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.help-cat {
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  padding: 22px;
  /* Glass effect: branco semi-transparente + blur do fundo. */
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow:
    0 4px 16px rgba(15, 15, 25, .04),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
  cursor: pointer;
}
.help-cat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .85);
  border-color: var(--accent-2);
  box-shadow: 0 14px 36px rgba(124, 58, 237, .15);
}
.help-cat-ico {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  flex-shrink: 0;
}
.help-cat strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  justify-self: start;
  align-self: end;
}
.help-cat span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  align-self: start;
  margin-top: 4px;
}

/* Conteúdo accordion */
.help-content {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 16px;
  scroll-margin-top: 20px;
  box-shadow:
    0 4px 16px rgba(15, 15, 25, .04),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.help-content h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -.3px;
}
.help-content details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.help-content details:first-of-type { border-top: 0; padding-top: 0; }
.help-content details summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.help-content details summary::-webkit-details-marker { display: none; }
.help-content details summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s;
}
.help-content details[open] summary::after { content: '−'; color: var(--accent); }
.help-content details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Contact card */
.help-contact {
  text-align: center;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  padding: 36px 24px;
  border-radius: 16px;
  margin-top: 40px;
}
.help-contact strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.help-contact p {
  margin: 10px 0 20px;
  opacity: .9;
}
.help-btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  transition: transform .15s, box-shadow .15s;
}
.help-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .2);
}

/* Footer */
.help-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.help-footer a:hover { color: var(--accent); }

/* Esconde categoria via search filter */
.help-cat.is-hidden { display: none; }

/* ============ HERO COMPACT (página de categoria) ============
   Sem search central — só nav + search inline embaixo, mais compacto. */
.help-hero-compact { padding-bottom: 30px; }
.help-hero-compact .help-hero-body { margin-top: 16px; }
.help-hero-compact .help-search input { height: 56px; font-size: 15px; }

/* ============ BREADCRUMB BAR ============ */
.help-breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(255, 255, 255, .85);
}
.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  transition: color .15s;
}
.help-back:hover { color: var(--accent); }
.help-breadcrumb-sep { color: var(--muted); }
.help-breadcrumb-tag {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .5px;
}
.help-breadcrumb-divider { color: var(--border); }
.help-breadcrumb-desc { color: var(--text); font-weight: 500; }

/* ============ LAYOUT: sidebar + content ============ */
.help-cat-main {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.help-sidebar {
  position: sticky;
  top: 90px;
}
.help-sidebar h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -.2px;
}
.help-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-sidebar-item {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, color .15s;
}
.help-sidebar-item:hover {
  background: rgba(124, 58, 237, .06);
  color: var(--text);
}
.help-sidebar-item.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, .25);
}

/* ============ ARTICLE CARDS ============ */
.help-cat-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-article {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: 0 2px 8px rgba(15, 15, 25, .03);
}
.help-article:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 8px 24px rgba(124, 58, 237, .1);
}
.help-article-icon {
  color: var(--accent-3);
  padding-top: 2px;
}
.help-article h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.2px;
}
.help-article-excerpt,
.help-article-full {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.help-article.is-open .help-article-excerpt { display: none; }
.help-article.is-open .help-article-full { color: var(--text); }
.help-article-readers {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.help-readers-dots {
  display: inline-flex;
  gap: 4px;
  margin-top: 6px;
}
.help-readers-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(167, 139, 250, .25);
}
.help-readers-dot.is-filled { background: var(--accent); }

@media (max-width: 820px) {
  .help-cat-main {
    grid-template-columns: 1fr;
  }
  .help-sidebar { position: static; }
  .help-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
  }
  .help-sidebar-item { flex-shrink: 0; padding: 10px 14px; }
}
@media (max-width: 720px) {
  .help-breadcrumb { padding: 12px 16px; gap: 10px; font-size: 12px; }
  .help-breadcrumb-divider, .help-breadcrumb-desc { display: none; }
  .help-article { grid-template-columns: 28px 1fr; padding: 16px; }
  .help-article-readers { grid-column: 1 / -1; text-align: left; }
}

/* Mobile */
@media (max-width: 720px) {
  .help-hero-bar { padding: 14px 18px; flex-wrap: wrap; }
  .help-brand img { height: 32px; }
  .help-brand-tag { font-size: 10px; padding: 3px 8px; }
  .help-hero-actions .help-btn-ghost { padding: 8px 14px; font-size: 12px; }
  .help-hero-body h1 { font-size: 24px; }
  .help-search input { height: 54px; font-size: 15px; padding-left: 48px; }
  .help-search svg { left: 18px; }
  .help-cats { grid-template-columns: 1fr; }
  .help-cat { padding: 18px; }
  .help-content { padding: 22px; }
  .help-content h2 { font-size: 18px; }
  .help-footer { flex-direction: column; gap: 8px; }
}
