/* Help Center · estilos del modal y botón flotante */

#help-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(102, 126, 234, .45);
  z-index: 1040;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
#help-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(102, 126, 234, .6);
}
#help-fab i { font-size: 22px; }
.hide-in-apk #help-fab { display: none; }

#help-modal .modal-dialog { max-width: 920px; }
#help-modal .modal-content { border-radius: 14px; overflow: hidden; }
#help-modal .modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: 0;
}
#help-modal .modal-body { padding: 0; }

#help-layout { display: flex; min-height: 480px; max-height: 70vh; }
#help-sidebar {
  width: 280px;
  border-right: 1px solid #eee;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}
#help-search-wrap { padding: 12px; border-bottom: 1px solid #eee; }
#help-search { width: 100%; }
#help-list { overflow-y: auto; flex: 1; }
#help-list .help-item {
  padding: 10px 14px;
  border-bottom: 1px solid #efefef;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#help-list .help-item:hover { background: #eef1f6; }
#help-list .help-item.active { background: #667eea; color: #fff; }
#help-list .help-item.active small { color: rgba(255, 255, 255, .85); }
#help-list .help-item i { width: 20px; text-align: center; padding-top: 3px; }
#help-list .help-item strong { display: block; font-size: 13px; }
#help-list .help-item small { color: #6c757d; font-size: 11px; line-height: 1.3; }

#help-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
  font-size: 14px;
  line-height: 1.6;
}
#help-content h1 { color: #667eea; font-weight: 700; }
#help-content h2 { margin-top: 22px; }
#help-content table { width: 100%; margin: 14px 0; border-collapse: collapse; }
#help-content table th,
#help-content table td { border: 1px solid #ddd; padding: 6px 10px; }
#help-content table th { background: #f1f3f7; }
#help-content code { background: #f1f3f7; padding: 1px 5px; border-radius: 4px; font-size: 90%; }
#help-content pre { background: #2d2d2d; color: #f4f4f4; padding: 12px; border-radius: 6px; overflow-x: auto; }

@media (max-width: 768px) {
  #help-layout { flex-direction: column; max-height: 80vh; }
  #help-sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #eee; }
  #help-list { max-height: 220px; }
}
