/* Shared styles for all help pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #08080F;
  color: #E8E8F0;
  line-height: 1.6;
}
a { color: #8B5CF6; text-decoration: none; }
a:hover { text-decoration: underline; }

:root {
  --bg: #08080F; --bg2: #0F0F1A; --bg3: #16162A;
  --border: rgba(255,255,255,0.07);
  --purple: #8B5CF6; --purple-dim: rgba(139,92,246,0.12);
  --cyan: #22D3EE; --green: #34D399;
  --muted: #6B6B8A; --radius: 14px;
}

/* Nav */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 60px);
  height: 60px;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: #E8E8F0;
}
.nav-back {
  font-size: 13px; font-weight: 500; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
  transition: color 0.2s;
}
.nav-back:hover { color: #E8E8F0; text-decoration: none; }

/* Layout */
.help-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 48px clamp(16px, 4vw, 60px) 80px;
}
@media (max-width: 800px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-sidebar { display: none; }
}

/* Sidebar */
.help-sidebar { position: sticky; top: 80px; align-self: start; }
.sidebar-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px; padding: 0 12px;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.sidebar-nav a:hover { color: #E8E8F0; background: rgba(255,255,255,0.05); text-decoration: none; }
.sidebar-nav a.active {
  color: #C4B5FD; background: var(--purple-dim);
  border: 1px solid rgba(139,92,246,0.2);
}

/* Content */
.help-content h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800; letter-spacing: -1px; line-height: 1.2;
  margin-bottom: 8px;
}
.help-content .subtitle {
  font-size: 16px; color: var(--muted); margin-bottom: 40px;
}
.help-content h2 {
  font-size: 20px; font-weight: 700; margin: 40px 0 16px;
}

/* Steps */
.steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.step {
  display: flex; gap: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.step:hover { border-color: rgba(139,92,246,0.2); }
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--purple-dim);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #C4B5FD;
}
.step-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.step-body a { color: var(--cyan); }

/* Code / Sub URL */
.sub-box {
  background: var(--bg3);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.sub-box-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sub-box code {
  font-family: 'Courier New', monospace;
  font-size: 14px; color: #C4B5FD;
  word-break: break-all;
}

/* App store badges */
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  transition: all 0.2s;
  color: #E8E8F0;
  text-decoration: none;
}
.app-badge:hover { border-color: var(--purple); background: var(--purple-dim); text-decoration: none; }
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 32px; }

/* Alert / tip */
.tip {
  background: rgba(34,211,238,0.06);
  border: 1px solid rgba(34,211,238,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px; color: #A5F3FC;
  margin: 24px 0;
  display: flex; gap: 10px; align-items: flex-start;
}
.warn {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.15);
  color: #FDE68A;
}

/* Footer strip */
.help-footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(16px, 4vw, 60px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.help-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.help-footer-links a { font-size: 14px; color: var(--muted); }
.help-footer-links a:hover { color: #E8E8F0; }
