:root {
  --primary: #635bff;
  --primary-dark: #4f46db;
  --ink: #172033;
  --muted: #667085;
  --line: #e7e9f2;
  --soft: #f7f7fd;
  --success: #17845b;
  --white: #fff;
  --shadow: 0 18px 45px rgba(45, 42, 103, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Cairo", sans-serif;
  line-height: 1.85;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.help-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(231, 233, 242, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 94px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; font-weight: 800; }
.brand img { width: 74px; height: 74px; object-fit: contain; }
.brand-label { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: .92rem;
  font-weight: 700;
}
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 18%, rgba(99, 91, 255, .17), transparent 32%),
    radial-gradient(circle at 86% 82%, rgba(130, 125, 255, .12), transparent 28%),
    linear-gradient(180deg, #f8f7ff 0%, #fff 100%);
}
.hero-inner { position: relative; z-index: 1; width: min(820px, calc(100% - 32px)); margin: auto; padding: 68px 0 74px; text-align: center; }
.article-hero .hero-inner { padding: 48px 0; text-align: right; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--primary); font-size: .9rem; font-weight: 800; }
h1 { margin: 0 0 12px; font-size: clamp(2.15rem, 7vw, 3.8rem); line-height: 1.3; letter-spacing: -.04em; }
.article-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.hero-copy, .article-hero p { max-width: 680px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(.98rem, 2.3vw, 1.1rem); }
.article-hero p { margin: 0; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a:hover { color: var(--primary); }
.search-wrap { position: relative; max-width: 700px; margin: auto; text-align: right; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > i { position: absolute; right: 21px; z-index: 1; color: var(--primary); font-size: 1.35rem; pointer-events: none; }
.search-box input {
  width: 100%;
  height: 64px;
  padding: 0 58px 0 52px;
  border: 1px solid #dcdcf4;
  border-radius: 18px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 18px 48px rgba(99, 91, 255, .16), 0 0 0 4px rgba(99, 91, 255, .08); }
.search-clear { position: absolute; left: 17px; display: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; }
.search-clear.is-visible { display: grid; }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  max-height: 360px;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(35, 33, 82, .17);
  list-style: none;
}
.search-results.is-open { display: block; }
.search-result a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; border-radius: 11px; font-size: .94rem; font-weight: 700; }
.search-result a:hover, .search-result a:focus { background: var(--soft); color: var(--primary); outline: 0; }
.empty-result { padding: 20px 14px; color: var(--muted); text-align: center; }
.section { width: min(1120px, calc(100% - 32px)); margin: auto; padding: 72px 0 0; }
.section-heading { margin-bottom: 25px; }
.section-heading h2, .article h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 4vw, 1.95rem); line-height: 1.5; }
.section-heading p { margin: 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.article-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  font-weight: 700;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); border-color: #cbc9f5; box-shadow: 0 14px 32px rgba(45, 42, 103, .09); }
.article-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--primary); font-size: 1.2rem; }
.article-card > i:last-child { margin-inline-start: auto; color: #a4a8b8; }
.categories-section { padding-top: 88px; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.category-card {
  display: block;
  min-height: 210px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #fcfcff);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.category-card:hover { transform: translateY(-4px); border-color: #c9c7f2; box-shadow: 0 16px 36px rgba(45, 42, 103, .09); }
.category-card > i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: #eeeeff; color: var(--primary); font-size: 1.45rem; }
.category-card h3 { margin: 0 0 6px; font-size: 1.13rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.category-card span { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; color: var(--primary); font-size: .82rem; font-weight: 800; }
.support-section { padding-bottom: 80px; }
.support-box, .support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 38px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
}
.support-box h2, .support h2 { margin: 0 0 5px; }
.support-box p, .support p { margin: 0; }
.support-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.support-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.65); border-radius: 11px; color: #fff; font-weight: 800; }
.support-actions a.primary { border-color: #fff; background: #fff; color: var(--primary); }
.article { width: min(820px, calc(100% - 32px)); margin: auto; padding: 44px 0 80px; }
.article section { margin-top: 44px; scroll-margin-top: 112px; }
.article section:first-child { margin-top: 0; }
.article p { margin: 0 0 14px; }
.article-intro { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: help-step; }
.step { position: relative; padding: 0 58px 36px 0; counter-increment: help-step; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 42px; right: 20px; bottom: 3px; width: 2px; background: var(--line); }
.step::before { content: counter(help-step); position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.step h3 { margin: 2px 0 8px; font-size: 1.12rem; }
.step p { color: #4e596c; }
.ui-label { display: inline-block; padding: 1px 9px; border: 1px solid #d9dcf9; border-radius: 7px; background: #f4f4ff; color: #4046bd; font-weight: 700; white-space: nowrap; }
.screenshot { display: grid; place-items: center; margin: 17px 0 0; padding: 16px; border: 1px solid #deddf3; border-radius: 13px; background: #fafaff; overflow: hidden; }
.screenshot img { display: block; width: min(100%, 560px); height: auto; border-radius: 8px; }
.image-needed { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 15px 17px; border: 1px dashed #bdb9ed; border-radius: 13px; background: #fafaff; color: #5d5a85; font-size: .9rem; }
.image-needed i { color: var(--primary); font-size: 1.25rem; }
.notes { margin: 0; padding: 0 22px 0 0; }
.notes li { margin-bottom: 9px; padding-right: 5px; }
.success-card { padding: 23px; border: 1px solid #caeadc; border-radius: 18px; background: #f2fbf7; }
.success-card h2 { color: #116745; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 86px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; font-weight: 700; transition: .2s; }
.related-card:hover { transform: translateY(-2px); border-color: #bec2fa; }
.related-card i { color: var(--primary); }
.article .support { margin-top: 52px; }
footer { padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .84rem; }
@media (max-width: 860px) { .article-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .header-inner { min-height: 80px; }
  .brand img { display: none; }
  .brand-label { padding-inline-start: 0; border-inline-start: 0; font-size: .82rem; }
  .header-link .wide { display: none; }
  .hero-inner { padding: 50px 0 56px; }
  .article-hero .hero-inner { padding: 38px 0; }
  .search-box input { height: 59px; padding-right: 52px; font-size: .88rem; }
  .section { padding-top: 56px; }
  .article-grid, .category-grid, .related-grid { grid-template-columns: 1fr; }
  .support-box, .support { align-items: stretch; flex-direction: column; padding: 28px 24px; }
  .support-actions { flex-wrap: nowrap; }
  .support-actions a { flex: 1; justify-content: center; padding-inline: 11px; white-space: nowrap; }
  .article { padding-top: 32px; }
  .step { padding-right: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
