:root {
  --bg: #0d0f14;
  --bg-elevated: #141821;
  --panel: #181d28;
  --panel-hover: #1e2433;
  --surface: #1c2230;
  --text: #f0f2f5;
  --text-secondary: #b8bfcc;
  --muted: #6b7385;
  --border: #252b3a;
  --border-light: #2d3548;
  --accent: #ffb700;
  --accent-hover: #ffd566;
  --accent-dim: rgba(255, 183, 0, 0.12);
  --green: #2ecc71;
  --green-dim: rgba(46, 204, 113, 0.15);
  --red: #ff5c5c;
  --red-dim: rgba(255, 92, 92, 0.15);
  --yellow: #ffb020;
  --yellow-dim: rgba(255, 176, 32, 0.15);
  --blue: #4f9cff;
  --blue-dim: rgba(79, 156, 255, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 280px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

.help-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img { height: 32px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-input {
  width: 260px;
  padding: 9px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.search-input::placeholder { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover { background: var(--panel-hover); }

.btn-ghost { background: transparent; border-color: transparent; }

.lang-switcher { display: flex; gap: 4px; }

.lang-btn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-btn:hover { color: var(--text); background: var(--panel-hover); }
.lang-btn.active { background: var(--accent); color: #1a1200; }

.help-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - 64px - 80px);
}

.help-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
}

.sidebar-nav h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: 0 0 16px;
}

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover { background: var(--panel-hover); color: var(--text); }

.sidebar-nav a.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }

.sidebar-nav a.muted { color: var(--muted); pointer-events: none; }

.badge-soon {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
  background: var(--border-light);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.help-content {
  padding: 40px 48px;
  max-width: 860px;
}

.page-header { margin-bottom: 36px; }
.page-header h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.page-header p { color: var(--text-secondary); font-size: 17px; margin: 0; }

h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; color: var(--text); }
h3 { font-size: 19px; font-weight: 600; margin: 28px 0 12px; }
p { margin: 0 0 16px; color: var(--text-secondary); }

.help-content ul, .help-content ol { margin: 0 0 20px; padding-left: 24px; color: var(--text-secondary); }
.help-content li { margin-bottom: 8px; }
.help-content strong { color: var(--text); }

.callout {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--panel);
}

.callout.note { border-left-color: var(--blue); background: var(--blue-dim); }
.callout.warning { border-left-color: var(--yellow); background: var(--yellow-dim); }
.callout.danger { border-left-color: var(--red); background: var(--red-dim); }
.callout.tip { border-left-color: var(--green); background: var(--green-dim); }

.callout-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot { margin: 24px 0; }

.screenshot-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

.screenshot figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
}

.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.help-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--bg-elevated);
}

.help-footer p { margin: 0 0 6px; color: var(--muted); }

.mobile-menu-toggle { display: none; background: transparent; border: none; color: var(--text); font-size: 20px; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
  }
  .help-sidebar.open { transform: translateX(0); }
  .mobile-menu-toggle { display: inline-flex; }
  .search-input { width: 140px; }
  .help-content { padding: 24px; }
  .header-inner { padding: 0 16px; }
}
