:root {
  --bg-obsidian: #0b0a0f;
  --bg-surface: #131119;
  --bg-surface-elevated: #191621;
  --bg-surface-accent: #211d2b;
  --border-violet: #2a2536;
  --border-violet-strong: #3d3554;
  --electric-violet: #8b5cf6;
  --violet-glow: rgba(139, 92, 246, 0.25);
  --violet-light: #a78bfa;
  --accent-blue: #3b82f6;
  --text-primary: #f3f4f6;
  --text-muted: #8b8499;
  --text-subtle: #625c72;
  --success: #34d399;
  --warn: #f59e0b;
  --danger: #ef4444;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Variable Text", Roboto, "Inter", "Noto Sans Arabic", sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background Atmosphere Glow */
.bg-glow-radial {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navigation Bar */
.nav-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-violet);
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-emblem {
  width: 32px;
  height: 32px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title span {
  color: var(--electric-violet);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--electric-violet);
  color: #ffffff;
  border: 1px solid var(--border-violet-strong);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--violet-glow);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: #7c3aed;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-violet);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--violet-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  text-align: center;
  padding: 96px 24px 72px;
  max-width: 1080px;
  margin: 0 auto;
  z-index: 1;
}

.badge-version, .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(139, 92, 246, 0.09);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.12);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: live-pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-secondary {
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  background: rgba(19, 17, 25, 0.85);
  backdrop-filter: blur(8px);
}

.hero-trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 52px;
  max-width: 900px;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.hero-trust-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: #f3f4f6;
  background: rgba(139, 92, 246, 0.06);
}

.hero-trust-icon {
  color: var(--electric-violet);
  font-size: 13px;
}

/* Feature Grid */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  padding: 32px;
  transition: all 0.25s ease;
}

.card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-violet-strong);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.12);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-violet);
  font-size: 24px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing Card Component */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--electric-violet);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 28px;
  background: var(--electric-violet);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  margin: 16px 0 8px;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 28px 0 36px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.pricing-features li svg {
  color: var(--electric-violet);
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-violet);
  padding: 48px 24px;
  background: #08080c;
  color: var(--text-subtle);
  font-size: 13px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--electric-violet);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-violet);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: var(--electric-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.mono-box {
  background: #07070b;
  border: 1px solid var(--border-violet);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--violet-light);
  word-break: break-all;
  user-select: all;
}

/* Badges & Owner Styling */
.badge-owner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35)) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.7) !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-owner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(180, 83, 9, 0.35));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.role-admin {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.tier-owner {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.6) !important;
}

/* App Preview Frame & Ambient Glow */
.app-preview-container {
  margin: 48px auto 0;
  max-width: 1140px;
  position: relative;
  padding: 0 8px;
}

.app-preview-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.22) 0%, rgba(91, 33, 182, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.app-preview-frame {
  position: relative;
  z-index: 1;
  background: #0d0c13;
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 50px -10px rgba(139, 92, 246, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.app-preview-frame:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 35px 90px -20px rgba(0, 0, 0, 0.95), 0 0 60px -5px rgba(139, 92, 246, 0.32);
}

.app-preview-titlebar {
  background: #111018;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-preview-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.app-preview-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-close {
  background: #ef4444;
  opacity: 0.85;
}

.dot-minimize {
  background: #f59e0b;
  opacity: 0.85;
}

.dot-maximize {
  background: #10b981;
  opacity: 0.85;
}

.app-preview-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.caption-icon {
  color: var(--electric-violet);
  flex-shrink: 0;
}

.app-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
}

.app-preview-screen {
  position: relative;
  background: #09090d;
}

.app-preview-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 15px 15px;
}

/* Feature Capability Strip under App Preview */
.preview-feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.preview-feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(19, 17, 25, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  text-align: left;
  transition: all 0.2s ease;
}

.preview-feature-pill:hover {
  background: rgba(25, 22, 33, 0.85);
  border-color: rgba(139, 92, 246, 0.38);
  transform: translateY(-2px);
}

.pill-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #f3f4f6;
}

.pill-text span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Cinematic Game Showcase Section */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--electric-violet);
  box-shadow: 0 20px 42px -12px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.4);
}

.game-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0c0b11;
}

.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover .game-cover-img {
  transform: scale(1.06);
}

.game-cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(13, 11, 18, 0.95) 100%);
  pointer-events: none;
}

.game-badges-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.platform-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.platform-steam {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.platform-epic {
  background: rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.5);
}

.platform-xbox {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.platform-standalone {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.status-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 7px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.game-quick-action {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.quick-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(19, 17, 25, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 7px;
  color: #f3f4f6;
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.game-card:hover .quick-play-btn {
  background: var(--electric-violet);
  border-color: var(--electric-violet);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
}

.game-details {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-surface);
  flex-grow: 1;
  justify-content: space-between;
}

.game-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  gap: 8px;
}

.game-genre {
  color: #cbd5e1;
  font-weight: 500;
}

.game-protocol {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
  .nav-bar {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
  }
  .hero-section {
    padding: 48px 16px 32px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .preview-feature-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .app-preview-caption {
    font-size: 10px;
  }
  .app-preview-badge span:last-child {
    display: none;
  }
}

/* ======================================================================
   HELP CENTER STYLES
   ====================================================================== */
.help-hero {
  padding: 60px 24px 36px;
  text-align: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.help-search-wrapper {
  max-width: 680px;
  margin: 28px auto 20px;
  position: relative;
}

.help-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.help-search-icon {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  color: var(--violet-light);
  pointer-events: none;
}

.help-search-input {
  width: 100%;
  padding: 16px 52px 16px 52px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-violet-strong);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(139, 92, 246, 0.1);
  transition: all 0.25s ease;
  outline: none;
}

.help-search-input:focus {
  border-color: var(--electric-violet);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25), 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: #1c1827;
}

.help-search-clear {
  position: absolute;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.help-search-clear:hover {
  background: var(--electric-violet);
  color: #fff;
}

.help-search-stats {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Category Filter Pills */
.help-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 36px;
}

.help-pill {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.help-pill:hover {
  color: var(--text-primary);
  border-color: var(--violet-light);
  background: var(--bg-surface-elevated);
}

.help-pill.active {
  color: #fff;
  background: var(--electric-violet);
  border-color: var(--electric-violet);
  box-shadow: 0 2px 14px var(--violet-glow);
}

/* Category Quick Jump Grid */
.help-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.help-cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.help-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--electric-violet);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(139, 92, 246, 0.2);
  background: var(--bg-surface-elevated);
}

.help-cat-icon {
  font-size: 28px;
  margin-bottom: 2px;
}

.help-cat-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.help-cat-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.help-cat-meta {
  font-size: 12px;
  color: var(--violet-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* Two-column Help Layout */
.help-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

/* Sticky Sidebar TOC */
.help-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.help-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-light);
  margin-bottom: 14px;
}

.help-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-toc-item a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.help-toc-item a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.help-toc-item.active a {
  color: #fff;
  background: var(--electric-violet);
  font-weight: 600;
}

/* Articles Container */
.help-articles {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.help-section-header {
  border-bottom: 1px solid var(--border-violet);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.help-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.help-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 28px;
  transition: border-color 0.2s ease;
  position: relative;
}

.help-article-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.help-article-header {
  margin-bottom: 18px;
}

.help-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.help-article-tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11.5px;
}

.help-article-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.help-article-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.help-article-body p {
  margin-bottom: 14px;
}

.help-article-body strong {
  color: var(--text-primary);
}

.help-article-body h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

/* Numbered Step List */
.help-step-list {
  list-style: none;
  counter-reset: help-counter;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-step {
  counter-increment: help-counter;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.help-step::before {
  content: counter(help-counter);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--electric-violet);
  color: var(--violet-light);
  font-weight: 700;
  font-size: 13px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.help-step-content {
  flex: 1;
}

/* UI Button Reference Chip */
.ui-ref {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.ui-ref.primary {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--electric-violet);
  color: var(--violet-light);
}

/* Code & Path formatting */
.help-code {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #e2e8f0;
}

/* Callout Boxes */
.help-callout {
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  line-height: 1.6;
  border-left: 4px solid;
}

.help-callout-tip {
  background: rgba(16, 185, 129, 0.08);
  border-color: #10b981;
  color: #d1fae5;
}

.help-callout-tip strong {
  color: #34d399;
}

.help-callout-warn {
  background: rgba(245, 158, 11, 0.08);
  border-color: #f59e0b;
  color: #fef3c7;
}

.help-callout-warn strong {
  color: #fbbf24;
}

.help-callout-security {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #fee2e2;
}

.help-callout-security strong {
  color: #f87171;
}

.help-callout-info {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--electric-violet);
  color: #ede9fe;
}

.help-callout-info strong {
  color: var(--violet-light);
}

/* Authentic Screenshot Display Frame */
.help-screenshot-card {
  margin: 20px 0;
  background: #09080d;
  border: 1px solid var(--border-violet-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.help-screenshot-titlebar {
  background: rgba(25, 22, 33, 0.95);
  border-bottom: 1px solid var(--border-violet);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.help-screenshot-dots {
  display: flex;
  gap: 6px;
}

.help-screenshot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.help-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
}

.help-screenshot-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(15, 13, 20, 0.9);
  border-top: 1px solid var(--border-violet);
  font-style: italic;
}

/* Feature Comparison Table */
.help-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid var(--border-violet);
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.help-table th {
  background: var(--bg-surface-elevated);
  padding: 12px 16px;
  color: var(--text-primary);
  font-weight: 700;
  border-bottom: 1px solid var(--border-violet);
}

.help-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.help-table tr:last-child td {
  border-bottom: none;
}

.help-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Article Actions Footer */
.help-article-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.help-copy-btn {
  background: transparent;
  border: 1px solid var(--border-violet);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.help-copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--electric-violet);
  background: rgba(139, 92, 246, 0.1);
}

/* Empty search state */
.help-no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 14px;
  margin: 20px 0;
}

.help-no-results h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.help-no-results p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

@media (max-width: 960px) {
  .help-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .help-layout {
    grid-template-columns: 1fr;
  }
  .help-sidebar {
    display: none;
  }
}

@media (max-width: 600px) {
  .help-categories-grid {
    grid-template-columns: 1fr;
  }
  .help-article-card {
    padding: 20px 16px;
  }
  .help-section-title {
    font-size: 20px;
  }
}

/* Breadcrumbs & Navigation Enhancements */
.help-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.help-breadcrumbs a {
  color: var(--violet-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.help-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.help-breadcrumbs-sep {
  color: var(--text-subtle);
  user-select: none;
}

/* Keyboard Shortcut Badge */
.help-search-kbd {
  position: absolute;
  right: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  pointer-events: none;
}

/* Back to Website Button */
.help-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-light);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-violet);
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 24px;
}

.help-back-home:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--electric-violet);
  color: #fff;
}

/* Dedicated Troubleshooting Box Structure */
.troubleshoot-container {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-violet);
  border-radius: 12px;
  padding: 20px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.troubleshoot-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
}

.troubleshoot-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.troubleshoot-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.troubleshoot-label.symptom { color: #f87171; }
.troubleshoot-label.causes { color: #fbbf24; }
.troubleshoot-label.steps { color: #34d399; }
.troubleshoot-label.support { color: #818cf8; }

.troubleshoot-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.troubleshoot-text strong {
  color: var(--text-primary);
}

/* Related Guides Links */
.help-related-wrap {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-violet);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.help-related-label {
  color: var(--text-subtle);
  font-weight: 600;
}

.help-related-tag {
  color: var(--violet-light);
  text-decoration: none;
  background: rgba(139, 92, 246, 0.1);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  transition: all 0.15s ease;
}

.help-related-tag:hover {
  background: var(--electric-violet);
  color: #fff;
}


